From ba8b0fd7b09ec1eae49a29e7042e69fb670a450b Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 22 Apr 2021 18:44:48 +0300 Subject: [PATCH] cli: reuse existing token flag for nep17-related commands --- cli/wallet/nep17.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cli/wallet/nep17.go b/cli/wallet/nep17.go index 941670de0..79bc59795 100644 --- a/cli/wallet/nep17.go +++ b/cli/wallet/nep17.go @@ -86,10 +86,7 @@ func newNEP17Commands() []cli.Command { Action: printNEP17Info, Flags: []cli.Flag{ walletPathFlag, - cli.StringFlag{ - Name: "token", - Usage: "Token name or hash", - }, + tokenFlag, }, }, { @@ -99,10 +96,7 @@ func newNEP17Commands() []cli.Command { Action: removeNEP17Token, Flags: []cli.Flag{ walletPathFlag, - cli.StringFlag{ - Name: "token", - Usage: "Token name or hash", - }, + tokenFlag, forceFlag, }, },