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:
Roman Khimov 2020-12-13 23:17:19 +03:00
parent cf8cf93e7a
commit 938be298f0

View file

@ -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 {