mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
rpc: fix name of json nep5balance field
Problem: wrong json field name of result.NEP5Balances.Balances (see for details: https://github.com/neo-project/neo-modules/blob/master-2.x/RpcNep5Tracker/RpcNep5Tracker.cs#L295) Solution: rename field from `balances` to `balance` to be consistent with C# client
This commit is contained in:
parent
4911837949
commit
ca12c75b12
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
// NEP5Balances is a result for the getnep5balances RPC call.
|
// NEP5Balances is a result for the getnep5balances RPC call.
|
||||||
type NEP5Balances struct {
|
type NEP5Balances struct {
|
||||||
Balances []NEP5Balance `json:"balances"`
|
Balances []NEP5Balance `json:"balance"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue