Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnv219 committed Dec 26, 2024
1 parent ed5e2cc commit f4486d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MinWallet/Data/Model/MinWallet+Mapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import Foundation
extension MinWallet: Codable {
public init(from decoder: any Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
//TODO: cuongnv
//walletName = try container.decode(String.self, forKey: .walletName)
walletName = try container.decode(String.self, forKey: .walletName)
address = try container.decode(String.self, forKey: .address)
networkId = try container.decode(UInt32.self, forKey: .networkId)
accountIndex = try container.decode(UInt32.self, forKey: .accountIndex)
Expand All @@ -14,8 +13,7 @@ extension MinWallet: Codable {

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
//TODO: cuongnv
//try container.encode(walletName, forKey: .walletName)
try container.encode(walletName, forKey: .walletName)
try container.encode(address, forKey: .address)
try container.encode(networkId, forKey: .networkId)
try container.encode(accountIndex, forKey: .accountIndex)
Expand Down

0 comments on commit f4486d9

Please sign in to comment.