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 <erik@neo.org>
  • Loading branch information
陈志同 and erikzhang committed Sep 23, 2020
1 parent f612e3a commit 4b2f18a
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 4b2f18a

Please sign in to comment.