From ca12c75b125ada2d1bba318f23bb98449fbaac91 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 18 Mar 2020 13:39:16 +0300 Subject: [PATCH] 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 --- pkg/rpc/response/result/nep5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpc/response/result/nep5.go b/pkg/rpc/response/result/nep5.go index 3246cbb4a..897c82345 100644 --- a/pkg/rpc/response/result/nep5.go +++ b/pkg/rpc/response/result/nep5.go @@ -8,7 +8,7 @@ import ( // NEP5Balances is a result for the getnep5balances RPC call. type NEP5Balances struct { - Balances []NEP5Balance `json:"balances"` + Balances []NEP5Balance `json:"balance"` Address string `json:"address"` }