mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
Merge pull request #2332 from nspcc-dev/native/fix-notary
core: adjust native Notary `withdraw` call flags
This commit is contained in:
commit
c9ccc9b575
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ func newNotary() *Notary {
|
|||
desc = newDescriptor("withdraw", smartcontract.BoolType,
|
||||
manifest.NewParameter("from", smartcontract.Hash160Type),
|
||||
manifest.NewParameter("to", smartcontract.Hash160Type))
|
||||
md = newMethodAndPrice(n.withdraw, 1<<15, callflag.States)
|
||||
md = newMethodAndPrice(n.withdraw, 1<<15, callflag.All)
|
||||
n.AddMethod(md, desc)
|
||||
|
||||
desc = newDescriptor("balanceOf", smartcontract.IntegerType,
|
||||
|
|
|
@ -22,7 +22,7 @@ func LockDepositUntil(addr interop.Hash160, till int) bool {
|
|||
|
||||
// Withdraw represents `withdraw` method of Notary native contract.
|
||||
func Withdraw(from, to interop.Hash160) bool {
|
||||
return neogointernal.CallWithToken(Hash, "withdraw", int(contract.States),
|
||||
return neogointernal.CallWithToken(Hash, "withdraw", int(contract.All),
|
||||
from, to).(bool)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue