From 3e4699080ab1177e3a2a51014126f653c1ed7eec Mon Sep 17 00:00:00 2001 From: Harry Pierson Date: Wed, 20 Nov 2019 00:04:53 -0500 Subject: [PATCH] fix #13 (incorrect 0x prefix on txid in getclaimable) --- src/neo2/ExpressNodeRpcPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo2/ExpressNodeRpcPlugin.cs b/src/neo2/ExpressNodeRpcPlugin.cs index a0eb2977..6ea9baa9 100644 --- a/src/neo2/ExpressNodeRpcPlugin.cs +++ b/src/neo2/ExpressNodeRpcPlugin.cs @@ -407,7 +407,7 @@ private JObject GetClaimable(JArray @params) totalUnclaimed += unclaimed; var utxo = new JObject(); - utxo["txid"] = coin.Reference.PrevHash.ToString(); + utxo["txid"] = coin.Reference.PrevHash.ToString().Substring(2); utxo["n"] = coin.Reference.PrevIndex; utxo["start_height"] = startHeight; utxo["end_height"] = endHeight;