cli: reuse existing token flag for nep17-related commands

This commit is contained in:
Anna Shaleva 2021-04-22 18:44:48 +03:00
parent a61a3d5ceb
commit ba8b0fd7b0

View file

@ -86,10 +86,7 @@ func newNEP17Commands() []cli.Command {
Action: printNEP17Info, Action: printNEP17Info,
Flags: []cli.Flag{ Flags: []cli.Flag{
walletPathFlag, walletPathFlag,
cli.StringFlag{ tokenFlag,
Name: "token",
Usage: "Token name or hash",
},
}, },
}, },
{ {
@ -99,10 +96,7 @@ func newNEP17Commands() []cli.Command {
Action: removeNEP17Token, Action: removeNEP17Token,
Flags: []cli.Flag{ Flags: []cli.Flag{
walletPathFlag, walletPathFlag,
cli.StringFlag{ tokenFlag,
Name: "token",
Usage: "Token name or hash",
},
forceFlag, forceFlag,
}, },
}, },