mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-07 23:10:32 +00:00
core: rename call flags
Also new States flag is added and ReadOnly flag is adjusted.
This commit is contained in:
parent
3bbf7642ea
commit
fadbae8997
16 changed files with 95 additions and 91 deletions
|
@ -107,7 +107,7 @@ func newTestNative() *testNative {
|
|||
tn.meta.AddMethod(md, desc)
|
||||
|
||||
desc = &manifest.Method{Name: "onPersist", ReturnType: smartcontract.BoolType}
|
||||
md = &interop.MethodAndPrice{Func: tn.OnPersist, RequiredFlags: smartcontract.AllowModifyStates}
|
||||
md = &interop.MethodAndPrice{Func: tn.OnPersist, RequiredFlags: smartcontract.WriteStates}
|
||||
tn.meta.AddMethod(md, desc)
|
||||
|
||||
return tn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue