forked from TrueCloudLab/frostfs-contract
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)
|
||||
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":
|
||||
|
|
Loading…
Reference in a new issue