Fix withdraw log message
This commit is contained in:
parent
ca54f71d30
commit
bf8b6f91d7
1 changed files with 3 additions and 5 deletions
|
@ -170,8 +170,7 @@ func Main(op string, args []interface{}) interface{} {
|
||||||
|
|
||||||
user := args[0].([]byte)
|
user := args[0].([]byte)
|
||||||
if !runtime.CheckWitness(user) {
|
if !runtime.CheckWitness(user) {
|
||||||
// todo: consider something different with neoID
|
panic("withdraw: you should be the owner of the wallet")
|
||||||
panic("withdraw: you should be the owner of the account")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
amount := args[1].(int)
|
amount := args[1].(int)
|
||||||
|
@ -179,9 +178,8 @@ func Main(op string, args []interface{}) interface{} {
|
||||||
amount = amount * 100000000
|
amount = amount * 100000000
|
||||||
}
|
}
|
||||||
|
|
||||||
txHash := runtime.GetScriptContainer().Hash
|
tx := runtime.GetScriptContainer()
|
||||||
|
runtime.Notify("Withdraw", user, amount, tx.Hash)
|
||||||
runtime.Notify("Withdraw", user, amount, txHash)
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
case "Cheque":
|
case "Cheque":
|
||||||
|
|
Loading…
Reference in a new issue