diff --git a/cli/multisig_test.go b/cli/multisig_test.go index 0d163764d..24e9f9762 100644 --- a/cli/multisig_test.go +++ b/cli/multisig_test.go @@ -74,7 +74,7 @@ func TestSignMultisigTx(t *testing.T) { e.In.WriteString("pass\r") e.Run(t, "neo-go", "wallet", "multisig", "sign", "--unittest", "--rpc-endpoint", "http://"+e.RPC.Addr, - "--wallet", wallet2Path, "--addr", multisigAddr, + "--wallet", wallet2Path, "--address", multisigAddr, "--in", txPath, "--out", txPath) e.checkTxPersisted(t) diff --git a/cli/nep5_test.go b/cli/nep5_test.go index 57d1185a8..3c07ffceb 100644 --- a/cli/nep5_test.go +++ b/cli/nep5_test.go @@ -24,7 +24,7 @@ func TestNEP5Balance(t *testing.T) { "--rpc-endpoint", "http://"+e.RPC.Addr, "--wallet", validatorWallet, ) - cmd := append(cmdbase, "--addr", validatorAddr) + cmd := append(cmdbase, "--address", validatorAddr) t.Run("NEO", func(t *testing.T) { b, index := e.Chain.GetGoverningTokenBalance(validatorHash) checkResult := func(t *testing.T) { @@ -95,7 +95,7 @@ func TestNEP5Balance(t *testing.T) { e.RunWithError(t, append(cmdbalance, "--wallet", "/dev/null")...) }) t.Run("Bad address", func(t *testing.T) { - e.RunWithError(t, append(cmdbalance, "--rpc-endpoint", "http://"+e.RPC.Addr, "--wallet", validatorWallet, "--addr", "xxx")...) + e.RunWithError(t, append(cmdbalance, "--rpc-endpoint", "http://"+e.RPC.Addr, "--wallet", validatorWallet, "--address", "xxx")...) }) return } diff --git a/cli/wallet/multisig.go b/cli/wallet/multisig.go index 58cf2012c..41d5b72e2 100644 --- a/cli/wallet/multisig.go +++ b/cli/wallet/multisig.go @@ -18,7 +18,7 @@ func newMultisigCommands() []cli.Command { outFlag, inFlag, cli.StringFlag{ - Name: "addr", + Name: "address, a", Usage: "Address to use", }, } @@ -27,7 +27,7 @@ func newMultisigCommands() []cli.Command { { Name: "sign", Usage: "sign a transaction", - UsageText: "multisig sign --wallet --addr --in --out ", + UsageText: "multisig sign --wallet --address
--in --out ", Action: signMultisig, Flags: signFlags, }, @@ -45,7 +45,7 @@ func signMultisig(ctx *cli.Context) error { if err != nil { return cli.NewExitError(err, 1) } - addr := ctx.String("addr") + addr := ctx.String("address") sh, err := address.StringToUint160(addr) if err != nil { return cli.NewExitError(fmt.Errorf("invalid address: %w", err), 1) diff --git a/cli/wallet/nep5.go b/cli/wallet/nep5.go index 727be16e6..3a61994f3 100644 --- a/cli/wallet/nep5.go +++ b/cli/wallet/nep5.go @@ -41,7 +41,7 @@ func newNEP5Commands() []cli.Command { walletPathFlag, tokenFlag, cli.StringFlag{ - Name: "addr", + Name: "address, a", Usage: "Address to use", }, } @@ -78,7 +78,7 @@ func newNEP5Commands() []cli.Command { { Name: "balance", Usage: "get address balance", - UsageText: "balance --wallet --rpc-endpoint [--timeout