From d7d7215392d737d8b07590bbe76d1e7c052601c4 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 26 Nov 2019 17:00:43 +0300 Subject: [PATCH] cli: rename testinvoke to testinvokescript To not confuse it with future testinvokefunction. --- cli/smartcontract/smart_contract.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index d3f6796f5..c4b9ac7c9 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -96,9 +96,9 @@ func NewCommands() []cli.Command { }, }, { - Name: "testinvoke", - Usage: "Test an invocation of a smart contract on the blockchain", - Action: testInvoke, + Name: "testinvokescript", + Usage: "Invoke compiled AVM code on the blockchain (test mode, not creating a transaction for it)", + Action: testInvokeScript, Flags: []cli.Flag{ cli.StringFlag{ Name: "endpoint, e", @@ -211,7 +211,7 @@ func contractCompile(ctx *cli.Context) error { return nil } -func testInvoke(ctx *cli.Context) error { +func testInvokeScript(ctx *cli.Context) error { src := ctx.String("in") if len(src) == 0 { return cli.NewExitError(errNoInput, 1)