From bf8b6f91d751423a21bee132700ac6ef972127fd Mon Sep 17 00:00:00 2001 From: alexvanin Date: Wed, 15 Jul 2020 12:05:03 +0300 Subject: [PATCH] Fix withdraw log message --- neofs_contract.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/neofs_contract.go b/neofs_contract.go index 6f103b2..9f39b66 100644 --- a/neofs_contract.go +++ b/neofs_contract.go @@ -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":