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

Remove testmode from applicationEngine #649

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions neo-cli/CLI/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ private void SendTransaction(byte[] script, UInt160 account = null)
Transaction tx = CurrentWallet.MakeTransaction(script, account, signers);
Console.WriteLine($"Invoking script with: '{tx.Script.ToHexString()}'");

using (ApplicationEngine engine = ApplicationEngine.Run(tx.Script, tx, null, testMode: true))
using (ApplicationEngine engine = ApplicationEngine.Run(tx.Script, container: tx))
{
PrintExecutionOutput(engine, true);
if (engine.State == VMState.FAULT) return;
Expand Down Expand Up @@ -540,7 +540,7 @@ private StackItem OnInvokeWithResult(UInt160 scriptHash, string operation, IVeri
tx.Script = script;
}

using ApplicationEngine engine = ApplicationEngine.Run(script, verificable, testMode: true);
using ApplicationEngine engine = ApplicationEngine.Run(script, container: verificable);
PrintExecutionOutput(engine, showStack);
return engine.State == VMState.FAULT ? null : engine.ResultStack.Peek();
}
Expand Down