Skip to content

Commit

Permalink
Fix VerifyWitness (neo-project#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao-Jin authored and Tommo-L committed Jun 22, 2020
1 parent 7b0adda commit 033c7d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/neo/SmartContract/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ internal static bool VerifyWitnesses(this IVerifiable verifiable, StoreView snap
engine.LoadScript(verifiable.Witnesses[i].InvocationScript, CallFlags.None);
if (engine.Execute() == VMState.FAULT) return false;
if (!engine.ResultStack.TryPop(out StackItem result) || !result.ToBoolean()) return false;
gas -= engine.GasConsumed;
}
}
return true;
Expand Down

0 comments on commit 033c7d5

Please sign in to comment.