Skip to content

Commit

Permalink
Convert StackItem directly to json (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeqian10 authored Jun 18, 2020
1 parent c51b96b commit 15776e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RpcServer/RpcServer.SmartContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private JObject GetInvokeResult(byte[] script, IVerifiable checkWitnessHashes =
json["gas_consumed"] = engine.GasConsumed.ToString();
try
{
json["stack"] = new JArray(engine.ResultStack.Select(p => p.ToParameter().ToJson()));
json["stack"] = new JArray(engine.ResultStack.Select(p => p.ToJson()));
}
catch (InvalidOperationException)
{
Expand Down

0 comments on commit 15776e3

Please sign in to comment.