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
|
@ -123,7 +123,7 @@ func NewContractMD(name string) *ContractMD {
|
|||
func (c *ContractMD) AddMethod(md *MethodAndPrice, desc *manifest.Method) {
|
||||
c.Manifest.ABI.Methods = append(c.Manifest.ABI.Methods, *desc)
|
||||
md.MD = desc
|
||||
desc.Safe = (md.RequiredFlags & smartcontract.AllowModifyStates) == 0
|
||||
desc.Safe = (md.RequiredFlags & smartcontract.WriteStates) == 0
|
||||
c.Methods[desc.Name] = *md
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue