Skip to content

Commit

Permalink
Allow calling script hash to pass CheckWitness (neo-project#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and Shawn committed Jan 8, 2021
1 parent 419b078 commit 2a99643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/neo/SmartContract/ApplicationEngine.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ protected internal bool CheckWitness(byte[] hashOrPubkey)

protected internal bool CheckWitnessInternal(UInt160 hash)
{
if (hash.Equals(CallingScriptHash)) return true;

if (ScriptContainer is Transaction tx)
{
Signer[] signers;
Expand Down

0 comments on commit 2a99643

Please sign in to comment.