cli: rename testinvoke to testinvokescript

To not confuse it with future testinvokefunction.
This commit is contained in:
Roman Khimov 2019-11-26 17:00:43 +03:00
parent 3843451ec4
commit d7d7215392

View file

@ -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)