Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Remove StackItem.ToParameter() (#602)
Browse files Browse the repository at this point in the history
Change `StackItem.ToParameter().ToJson()`  to `StackItem.ToJson()` when parsing `engine.ResultStack`.
  • Loading branch information
ProDog authored Jun 5, 2020
1 parent 4820772 commit 68f08e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo-cli/CLI/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ private void SendTransaction(byte[] script, UInt160 account = null)
{
Console.WriteLine($"VM State: {engine.State}");
Console.WriteLine($"Gas Consumed: {new BigDecimal(engine.GasConsumed, NativeContract.GAS.Decimals)}");
Console.WriteLine($"Evaluation Stack: {new JArray(engine.ResultStack.Select(p => p.ToParameter().ToJson()))}");
Console.WriteLine($"Evaluation Stack: {new JArray(engine.ResultStack.Select(p => p.ToJson()))}");
Console.WriteLine();
if (engine.State.HasFlag(VMState.FAULT))
{
Expand Down

0 comments on commit 68f08e1

Please sign in to comment.