Skip to content

Commit 30eb0a1

Browse files
committed
int32 instead of uint32 for currency_id
1 parent 9782db5 commit 30eb0a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/api/account_converters.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ func convertToRawAccount(account *core.Account) (oas.BlockchainRawAccount, error
5858
}
5959
}
6060
if account.ExtraBalances != nil {
61-
// TODO: use int instead of uint?
6261
balances := make(map[string]string, len(account.ExtraBalances))
6362
for key, value := range account.ExtraBalances {
64-
balances[fmt.Sprintf("%v", key)] = fmt.Sprintf("%v", value)
63+
balances[fmt.Sprintf("%v", int32(key))] = fmt.Sprintf("%v", value)
6564
}
6665
rawAccount.ExtraBalance = oas.NewOptBlockchainRawAccountExtraBalance(balances)
6766
}

0 commit comments

Comments
 (0)