From c9df5d3aedb08d06262eeac58402e5e1e38c582e Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 18 Jun 2020 16:31:31 +0300 Subject: [PATCH] rpc: fix typo in `getnep5transfers` rpc Omit empty address for transfers in both directions. --- pkg/rpc/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpc/server/server.go b/pkg/rpc/server/server.go index 8139833ab..898b1b61b 100644 --- a/pkg/rpc/server/server.go +++ b/pkg/rpc/server/server.go @@ -578,7 +578,7 @@ func (s *Server) getNEP5Transfers(ps request.Params) (interface{}, *response.Err } transfer.Amount = amountToString(-tr.Amount, d) - if !tr.From.Equals(util.Uint160{}) { + if !tr.To.Equals(util.Uint160{}) { transfer.Address = address.Uint160ToString(tr.To) } bs.Sent = append(bs.Sent, transfer)