core: fix native method call flags

Replace `WriteStates` with `States`.

Follow neo-project/neo#2339.
Close #1775.
Related #1725.
This commit is contained in:
Evgeniy Stratonikov 2021-02-25 18:04:46 +03:00
parent 492a89eb02
commit cbda20aca3
18 changed files with 68 additions and 72 deletions

View file

@ -11,6 +11,6 @@ const Hash = "\xee\x80\x4c\x14\x29\x68\xd4\x78\x8b\x8a\xff\x51\xda\xde\xdf\xcb\x
// Request represents `request` method of Oracle native contract.
func Request(url string, filter []byte, cb string, userData interface{}, gasForResponse int) {
contract.Call(interop.Hash160(Hash), "request",
contract.WriteStates|contract.AllowNotify,
contract.States|contract.AllowNotify,
url, filter, cb, userData, gasForResponse)
}