Skip to content

Commit

Permalink
Update FlowAccount.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmz committed Sep 19, 2024
1 parent ecbb0c1 commit 5888bf6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Sources/Models/FlowAccount.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ public extension Flow {
self.contracts = contracts
}

public init(address: Flow.Address, balance: UInt64? = nil, keys: [Flow.AccountKey], contracts: [String: Flow.Code]? = nil) {
self.address = address
self.keys = keys
self.contracts = contracts
if let balance {
self.balance = BigInt(balance)
} else {
self.balance = nil
}
}

public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
address = try container.decode(Flow.Address.self, forKey: .address)
Expand Down

0 comments on commit 5888bf6

Please sign in to comment.