rpc: fix getnep5transfers address check condition

This commit is contained in:
Evgenii Stratonikov 2020-07-21 11:12:37 +03:00
parent 8341913468
commit 7bdbfbad19

View file

@ -628,7 +628,7 @@ func (s *Server) getNEP5Transfers(ps request.Params) (interface{}, *response.Err
} }
transfer.Amount = amountToString(-tr.Amount, d) transfer.Amount = amountToString(-tr.Amount, d)
if !tr.From.Equals(util.Uint160{}) { if !tr.To.Equals(util.Uint160{}) {
transfer.Address = address.Uint160ToString(tr.To) transfer.Address = address.Uint160ToString(tr.To)
} }
bs.Sent = append(bs.Sent, transfer) bs.Sent = append(bs.Sent, transfer)