smartcontract: add AllowStates call flag

This commit is contained in:
Evgenii Stratonikov 2020-06-10 10:49:18 +03:00
parent 5fed409ea7
commit ebbf0321b2

View file

@ -5,10 +5,11 @@ type CallFlag byte
// Default flags. // Default flags.
const ( const (
NoneFlag CallFlag = 0 NoneFlag CallFlag = 0
AllowModifyStates CallFlag = 1 << iota AllowStates CallFlag = 1 << iota
AllowModifyStates
AllowCall AllowCall
AllowNotify AllowNotify
ReadOnly = AllowCall | AllowNotify ReadOnly = AllowStates | AllowCall | AllowNotify
All = AllowModifyStates | AllowCall | AllowNotify All = ReadOnly | AllowModifyStates
) )