Skip to content

Commit

Permalink
Optimize the result of 'getnep5transfers' (neo-project#345)
Browse files Browse the repository at this point in the history
* Update RpcNep5Tracker.cs

* Update RpcNep5Tracker.cs

Co-authored-by: Erik Zhang <[email protected]>
  • Loading branch information
2 people authored and joeqian10 committed Apr 7, 2021
1 parent 9fa9c10 commit dfb49bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RpcNep5Tracker/RpcNep5Tracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private void AddTransfers(byte dbPrefix, UInt160 userScriptHash, ulong startTime
JObject transfer = new JObject();
transfer["timestamp"] = key.TimestampMS;
transfer["assethash"] = key.AssetScriptHash.ToString();
transfer["transferaddress"] = value.UserScriptHash.ToAddress();
transfer["transferaddress"] = value.UserScriptHash == UInt160.Zero ? null : value.UserScriptHash.ToAddress();
transfer["amount"] = value.Amount.ToString();
transfer["blockindex"] = value.BlockIndex;
transfer["transfernotifyindex"] = key.BlockXferNotificationIndex;
Expand Down

0 comments on commit dfb49bd

Please sign in to comment.