From 7cba3a0342ad2a8df5df02b7dee4ad90e40b3e0d Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sun, 23 Aug 2020 15:41:55 +0300 Subject: [PATCH] core: require AllowStates flag for IsStandard Follow neo-project/neo#1830. --- pkg/core/interops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interops.go b/pkg/core/interops.go index e1fe89dbf..8c3459ff9 100644 --- a/pkg/core/interops.go +++ b/pkg/core/interops.go @@ -59,7 +59,7 @@ var systemInterops = []interop.Function{ RequiredFlags: smartcontract.AllowModifyStates, ParamCount: 2, DisallowCallback: true}, {Name: interopnames.SystemContractCreateStandardAccount, Func: contractCreateStandardAccount, Price: 10000, ParamCount: 1, DisallowCallback: true}, {Name: interopnames.SystemContractDestroy, Func: contractDestroy, Price: 1000000, RequiredFlags: smartcontract.AllowModifyStates, DisallowCallback: true}, - {Name: interopnames.SystemContractIsStandard, Func: contractIsStandard, Price: 30000, ParamCount: 1}, + {Name: interopnames.SystemContractIsStandard, Func: contractIsStandard, Price: 30000, RequiredFlags: smartcontract.AllowStates, ParamCount: 1}, {Name: interopnames.SystemContractGetCallFlags, Func: contractGetCallFlags, Price: 30000, DisallowCallback: true}, {Name: interopnames.SystemContractUpdate, Func: contractUpdate, Price: 0, RequiredFlags: smartcontract.AllowModifyStates, ParamCount: 2, DisallowCallback: true},