forked from TrueCloudLab/neoneo-go
smartcontract: start flags with 1
`iota` keyword is equal to the index of the declaration in the corresponding block, thus AllowStates was 2 in our case.
This commit is contained in:
parent
532262827d
commit
61edc8705e
1 changed files with 3 additions and 3 deletions
|
@ -5,13 +5,13 @@ type CallFlag byte
|
||||||
|
|
||||||
// Default flags.
|
// Default flags.
|
||||||
const (
|
const (
|
||||||
NoneFlag CallFlag = 0
|
|
||||||
AllowStates CallFlag = 1 << iota
|
AllowStates CallFlag = 1 << iota
|
||||||
AllowModifyStates
|
AllowModifyStates
|
||||||
AllowCall
|
AllowCall
|
||||||
AllowNotify
|
AllowNotify
|
||||||
ReadOnly = AllowStates | AllowCall | AllowNotify
|
ReadOnly = AllowStates | AllowCall | AllowNotify
|
||||||
All = ReadOnly | AllowModifyStates
|
All = ReadOnly | AllowModifyStates
|
||||||
|
NoneFlag CallFlag = 0
|
||||||
)
|
)
|
||||||
|
|
||||||
// Has returns true iff all bits set in cf are also set in f.
|
// Has returns true iff all bits set in cf are also set in f.
|
||||||
|
|
Loading…
Reference in a new issue