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 cloud8little committed Jan 24, 2021
1 parent 4d6dc37 commit a1b001d
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 a1b001d

Please sign in to comment.