Fix compilation error in Nim 1.2.6

This commit is contained in:
Mark Spanbroek 2021-03-22 15:50:57 +01:00
parent bd75f78244
commit 084f84b1bd

View File

@ -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):