From 938be298f026b9f02b847c592fa10c375a2dfd4f Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sun, 13 Dec 2020 23:17:19 +0300 Subject: [PATCH] core: don't allow calls in verification context Follow neo-project/neo#2144. System.Contract.CallNative already has "None" flag, so tests work fine. --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 0604f1847..99cd714dd 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -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 {