update balance output

pull/647/head
Richard Liu 6 years ago
parent 43d39bc5bd
commit a32d89769f
  1. 3
      cmd/client/wallet/main.go

@ -267,7 +267,8 @@ func processBalancesCommand() {
if *balanceAddressPtr == "" { if *balanceAddressPtr == "" {
for i, address := range ReadAddresses() { for i, address := range ReadAddresses() {
fmt.Printf("Account %d: %s:\n", i, address.Hex()) fmt.Printf("Account %d:\n", i)
fmt.Printf(" Address: %s\n", address.Hex())
for shardID, balanceNonce := range FetchBalance(address) { for shardID, balanceNonce := range FetchBalance(address) {
fmt.Printf(" Balance in Shard %d: %s, nonce: %v \n", shardID, convertBalanceIntoReadableFormat(balanceNonce.balance), balanceNonce.nonce) fmt.Printf(" Balance in Shard %d: %s, nonce: %v \n", shardID, convertBalanceIntoReadableFormat(balanceNonce.balance), balanceNonce.nonce)
} }

Loading…
Cancel
Save