From 7bdbfbad19a5db86a9976e928c7c81e34edb691a Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 21 Jul 2020 11:12:37 +0300 Subject: [PATCH] rpc: fix `getnep5transfers` address check condition --- 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 cdfb77b3a..0cde5c933 100644 --- a/pkg/rpc/server/server.go +++ b/pkg/rpc/server/server.go @@ -628,7 +628,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)