From ebbf0321b2f701c4266780584c92d111cad15a18 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 10 Jun 2020 10:49:18 +0300 Subject: [PATCH] smartcontract: add AllowStates call flag --- pkg/smartcontract/call_flags.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/smartcontract/call_flags.go b/pkg/smartcontract/call_flags.go index 9bc042fd5..94234a75d 100644 --- a/pkg/smartcontract/call_flags.go +++ b/pkg/smartcontract/call_flags.go @@ -5,10 +5,11 @@ type CallFlag byte // Default flags. const ( - NoneFlag CallFlag = 0 - AllowModifyStates CallFlag = 1 << iota + NoneFlag CallFlag = 0 + AllowStates CallFlag = 1 << iota + AllowModifyStates AllowCall AllowNotify - ReadOnly = AllowCall | AllowNotify - All = AllowModifyStates | AllowCall | AllowNotify + ReadOnly = AllowStates | AllowCall | AllowNotify + All = ReadOnly | AllowModifyStates )