Skip to content

Commit

Permalink
Fix (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Aug 8, 2019
1 parent 68271a9 commit a78d474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/Wallets/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private Transaction MakeTransaction(Snapshot snapshot, TransactionAttribute[] at
ValidUntilBlock = snapshot.Height + Transaction.MaxValidUntilBlockIncrement,
Attributes = attributes
};
using (ApplicationEngine engine = ApplicationEngine.Run(script, snapshot, tx, testMode: true))
using (ApplicationEngine engine = ApplicationEngine.Run(script, snapshot.Clone(), tx, testMode: true))
{
if (engine.State.HasFlag(VMState.FAULT))
throw new InvalidOperationException($"Failed execution for '{script.ToHexString()}'");
Expand Down

0 comments on commit a78d474

Please sign in to comment.