rpc: fix typo in getnep5transfers
rpc
Omit empty address for transfers in both directions.
This commit is contained in:
parent
3e76b9a9bf
commit
c9df5d3aed
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,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)
|
||||||
|
|
Loading…
Reference in a new issue