mirror of
https://github.com/logos-storage/nim-nitro.git
synced 2026-01-10 09:33:12 +00:00
Fix compilation error in Nim 1.2.6
This commit is contained in:
parent
bd75f78244
commit
084f84b1bd
@ -108,9 +108,12 @@ func balance*(wallet: Wallet,
|
||||
func balance*(wallet: Wallet,
|
||||
channel: ChannelId,
|
||||
asset: EthAddress,
|
||||
address = wallet.address): UInt256 =
|
||||
address: EthAddress): UInt256 =
|
||||
wallet.balance(channel, asset, address.toDestination)
|
||||
|
||||
func balance*(wallet: Wallet, channel: ChannelId, asset: EthAddress): UInt256 =
|
||||
wallet.balance(channel, asset, wallet.address)
|
||||
|
||||
func total(state: State, asset: EthAddress): UInt256 =
|
||||
var total: UInt256
|
||||
if balances =? state.outcome.balances(asset):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user