mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
core: don't allow calls in verification context
Follow neo-project/neo#2144. System.Contract.CallNative already has "None" flag, so tests work fine.
This commit is contained in:
parent
cf8cf93e7a
commit
938be298f0
1 changed files with 1 additions and 1 deletions
|
@ -1672,7 +1672,7 @@ func (bc *Blockchain) initVerificationVM(ic *interop.Context, hash util.Uint160,
|
|||
return ErrInvalidVerificationContract
|
||||
}
|
||||
initMD := cs.Manifest.ABI.GetMethod(manifest.MethodInit)
|
||||
v.LoadScriptWithHash(cs.Script, hash, smartcontract.ReadStates|smartcontract.AllowCall)
|
||||
v.LoadScriptWithHash(cs.Script, hash, smartcontract.ReadStates)
|
||||
v.Jump(v.Context(), md.Offset)
|
||||
|
||||
if cs.ID <= 0 {
|
||||
|
|
Loading…
Reference in a new issue