rpc: fix typo in getnep5transfers rpc

Omit empty address for transfers in both directions.
This commit is contained in:
Evgenii Stratonikov 2020-06-18 16:31:31 +03:00
parent 3e76b9a9bf
commit c9df5d3aed

View file

@ -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)