From a5d6c76928d9b485fefbcb24c2a625efa49d5107 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 13 Jul 2020 20:10:27 +0300 Subject: [PATCH] cli: pay a system fee for the invocation --- cli/smartcontract/smart_contract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index fe8b15a6c..48560024c 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -460,7 +460,7 @@ func invokeInternal(ctx *cli.Context, signAndPush bool) error { if err != nil { return cli.NewExitError(fmt.Errorf("bad script returned from the RPC node: %v", err), 1) } - txHash, err := c.SignAndPushInvocationTx(script, acc, 0, gas, cosigners) + txHash, err := c.SignAndPushInvocationTx(script, acc, resp.GasConsumed, gas, cosigners) if err != nil { return cli.NewExitError(fmt.Errorf("failed to push invocation tx: %v", err), 1) }