mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 13:38:35 +00:00
core: allow empty callingScriptHash during CheckWitness
CallingScriptHash can be empty in the entry transaction script.
This commit is contained in:
parent
a2bfd16136
commit
ff6aa0fd45
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ func checkScope(d dao.DAO, tx *transaction.Transaction, v *vm.VM, hash util.Uint
|
|||
if c.Scopes&transaction.CalledByEntry != 0 {
|
||||
callingScriptHash := v.GetCallingScriptHash()
|
||||
entryScriptHash := v.GetEntryScriptHash()
|
||||
if callingScriptHash == entryScriptHash {
|
||||
if callingScriptHash.Equals(util.Uint160{}) || callingScriptHash == entryScriptHash {
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue