cli: use AddressFlag for 'wallet remove' command

This commit is contained in:
Anna Shaleva 2021-04-19 16:45:40 +03:00
parent 42bfd413e3
commit 6af2f3fdec
2 changed files with 11 additions and 8 deletions

View file

@ -71,7 +71,7 @@ func TestWalletInit(t *testing.T) {
addr := w.Accounts[0].Address
e.In.WriteString("y\r")
e.Run(t, "neo-go", "wallet", "remove",
"--wallet", walletPath, addr)
"--wallet", walletPath, "--address", addr)
w, err := wallet.NewWalletFromFile(walletPath)
require.NoError(t, err)
require.Nil(t, w.GetAccount(sh))