Skip to content

Commit

Permalink
Convert StackItem directly to json (neo-project#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeqian10 committed Jun 22, 2020
1 parent ba29ae9 commit f79d64b
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 f79d64b

Please sign in to comment.