forked from TrueCloudLab/neoneo-go
contract: disable notifications for safe methods
See neo-project/neo#2339.
This commit is contained in:
parent
025330f132
commit
304b9ad3d4
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ func callInternal(ic *interop.Context, cs *state.Contract, name string, f callfl
|
|||
hasReturn bool, args []stackitem.Item) error {
|
||||
md := cs.Manifest.ABI.GetMethod(name, len(args))
|
||||
if md.Safe {
|
||||
f &^= callflag.WriteStates
|
||||
f &^= (callflag.WriteStates | callflag.AllowNotify)
|
||||
} else if ctx := ic.VM.Context(); ctx != nil && ctx.IsDeployed() {
|
||||
curr, err := ic.GetContract(ic.VM.GetCurrentScriptHash())
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in a new issue