diff --git a/pkg/rpc/client/rpc_test.go b/pkg/rpc/client/rpc_test.go index a024f048c..4820fdeb5 100644 --- a/pkg/rpc/client/rpc_test.go +++ b/pkg/rpc/client/rpc_test.go @@ -400,7 +400,7 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{ invoke: func(c *Client) (interface{}, error) { return c.GetNEP5Transfers("AbHgdBaWEnHkCiLtDZXjhvhaAK2cwFh5pF") }, - serverResponse: `{"jsonrpc":"2.0","id":1,"result":{"sent":[],"received":[{"timestamp":1555651816,"assethash":"600c4f5200db36177e3e8a09e9f18e2fc7d12a0f","transfer_address":"AYwgBNMepiv5ocGcyNT4mA8zPLTQ8pDBis","amount":"1000000","block_index":436036,"transfer_notify_index":0,"tx_hash":"df7683ece554ecfb85cf41492c5f143215dd43ef9ec61181a28f922da06aba58"}],"address":"AbHgdBaWEnHkCiLtDZXjhvhaAK2cwFh5pF"}}`, + serverResponse: `{"jsonrpc":"2.0","id":1,"result":{"sent":[],"received":[{"timestamp":1555651816,"assethash":"600c4f5200db36177e3e8a09e9f18e2fc7d12a0f","transferaddress":"AYwgBNMepiv5ocGcyNT4mA8zPLTQ8pDBis","amount":"1000000","blockindex":436036,"transfernotifyindex":0,"txhash":"df7683ece554ecfb85cf41492c5f143215dd43ef9ec61181a28f922da06aba58"}],"address":"AbHgdBaWEnHkCiLtDZXjhvhaAK2cwFh5pF"}}`, result: func(c *Client) interface{} { assetHash, err := util.Uint160DecodeStringLE("600c4f5200db36177e3e8a09e9f18e2fc7d12a0f") if err != nil { diff --git a/pkg/rpc/response/result/nep5.go b/pkg/rpc/response/result/nep5.go index c12844359..3a3640518 100644 --- a/pkg/rpc/response/result/nep5.go +++ b/pkg/rpc/response/result/nep5.go @@ -37,11 +37,11 @@ type NEP5Transfers struct { type NEP5Transfer struct { Timestamp uint64 `json:"timestamp"` Asset util.Uint160 `json:"assethash"` - Address string `json:"transfer_address,omitempty"` + Address string `json:"transferaddress,omitempty"` Amount string `json:"amount"` - Index uint32 `json:"block_index"` - NotifyIndex uint32 `json:"transfer_notify_index"` - TxHash util.Uint256 `json:"tx_hash"` + Index uint32 `json:"blockindex"` + NotifyIndex uint32 `json:"transfernotifyindex"` + TxHash util.Uint256 `json:"txhash"` } // MarshalJSON implements json.Marshaler interface.