Fix balances check on specific address

pull/166/head
Rongjian Lan 6 years ago
parent da48957bea
commit 141d2f551a
  1. 5
      client/wallet/main.go

@ -147,10 +147,9 @@ func main() {
}
}
} else {
address := common.HexToAddress(*freeTokenAddressPtr)
address := common.HexToAddress(*balanceAddressPtr)
fmt.Printf("Account: %s:\n", address.Hex())
for shardID, balanceNonce := range FetchBalance(address, walletNode) {
balance := balanceNonce.balance
balance = balance.Div(balance, big.NewInt(params.GWei))
fmt.Printf(" Balance in Shard %d: %s \n", shardID, convertBalanceIntoReadableFormat(balanceNonce.balance))
}
}

Loading…
Cancel
Save