Fix withdraw log message

This commit is contained in:
alexvanin 2020-07-15 12:05:03 +03:00
parent ca54f71d30
commit bf8b6f91d7

View file

@ -170,8 +170,7 @@ func Main(op string, args []interface{}) interface{} {
user := args[0].([]byte)
if !runtime.CheckWitness(user) {
// todo: consider something different with neoID
panic("withdraw: you should be the owner of the account")
panic("withdraw: you should be the owner of the wallet")
}
amount := args[1].(int)
@ -179,9 +178,8 @@ func Main(op string, args []interface{}) interface{} {
amount = amount * 100000000
}
txHash := runtime.GetScriptContainer().Hash
runtime.Notify("Withdraw", user, amount, txHash)
tx := runtime.GetScriptContainer()
runtime.Notify("Withdraw", user, amount, tx.Hash)
return true
case "Cheque":