Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Oct 27, 2023
1 parent e7cb831 commit 18af82d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ issues:
text: "SA1019:"
linters:
- staticcheck
- path: "client"
- path: "cli"
text: "use of repeated strings"
linters:
- goconst
Expand Down
6 changes: 6 additions & 0 deletions x/onft/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func NewTxCmd() *cobra.Command {
return txCmd
}

//nolintlint:goconst
func GetCmdCreateDenom() *cobra.Command {
cmd := &cobra.Command{
Use: "create [symbol]",
Expand Down Expand Up @@ -121,6 +122,7 @@ $ %s tx onft create [symbol] --name=<name> --schema=<schema> --description=<desc
return cmd
}

//nolintlint:goconst
func GetCmdMintONFT() *cobra.Command {
cmd := &cobra.Command{
Use: "mint [denom-id]",
Expand Down Expand Up @@ -275,6 +277,7 @@ Additional Flags
return cmd
}

//nolintlint:goconst
func GetCmdUpdateDenom() *cobra.Command {
cmd := &cobra.Command{
Use: "update-denom [denom-id]",
Expand Down Expand Up @@ -328,6 +331,7 @@ $ %s tx onft update-denom [denom-id] --name=<onft-name> --description=<onft-desc
return cmd
}

//nolintlint:goconst
func GetCmdTransferDenom() *cobra.Command {
cmd := &cobra.Command{
Use: "transfer-denom [recipient] [denom-id]",
Expand Down Expand Up @@ -369,6 +373,7 @@ $ %s tx onft transfer-denom [recipient] [denom-id] --from=<key-name> --chain-id=
return cmd
}

//nolintlint:goconst
func GetCmdTransferONFT() *cobra.Command {
cmd := &cobra.Command{
Use: "transfer [recipient] [denom-id] [onft-id]",
Expand Down Expand Up @@ -412,6 +417,7 @@ $ %s tx onft transfer [recipient] [denom-id] [onft-id] --from=<key-name> --chain
return cmd
}

//nolintlint:goconst
func GetCmdBurnONFT() *cobra.Command {
cmd := &cobra.Command{
Use: "burn [denom-id] [onft-id]",
Expand Down

0 comments on commit 18af82d

Please sign in to comment.