cli: rename testinvoke to testinvokescript
To not confuse it with future testinvokefunction.
This commit is contained in:
parent
3843451ec4
commit
d7d7215392
1 changed files with 4 additions and 4 deletions
|
@ -96,9 +96,9 @@ func NewCommands() []cli.Command {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "testinvoke",
|
Name: "testinvokescript",
|
||||||
Usage: "Test an invocation of a smart contract on the blockchain",
|
Usage: "Invoke compiled AVM code on the blockchain (test mode, not creating a transaction for it)",
|
||||||
Action: testInvoke,
|
Action: testInvokeScript,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "endpoint, e",
|
Name: "endpoint, e",
|
||||||
|
@ -211,7 +211,7 @@ func contractCompile(ctx *cli.Context) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func testInvoke(ctx *cli.Context) error {
|
func testInvokeScript(ctx *cli.Context) error {
|
||||||
src := ctx.String("in")
|
src := ctx.String("in")
|
||||||
if len(src) == 0 {
|
if len(src) == 0 {
|
||||||
return cli.NewExitError(errNoInput, 1)
|
return cli.NewExitError(errNoInput, 1)
|
||||||
|
|
Loading…
Reference in a new issue