Skip to content

Commit

Permalink
fix: Add tx flags to cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Jul 8, 2024
1 parent 16f9957 commit 88b89d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ require (
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/status-im/keycard-go v0.2.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
Expand Down
3 changes: 3 additions & 0 deletions x/erc20/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Where metadata.json contains (example):
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), proposal)
},
}
flags.AddTxFlagsToCmd(cmd)
AddGovPropFlagsToCmd(cmd)

return cmd
Expand Down Expand Up @@ -291,6 +292,7 @@ func NewRegisterERC20ProposalCmd(ac addresscodec.Codec) *cobra.Command {
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), proposal)
},
}
flags.AddTxFlagsToCmd(cmd)
AddGovPropFlagsToCmd(cmd)

return cmd
Expand Down Expand Up @@ -338,6 +340,7 @@ func NewToggleTokenConversionProposalCmd(ac addresscodec.Codec) *cobra.Command {
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), proposal)
},
}
flags.AddTxFlagsToCmd(cmd)
AddGovPropFlagsToCmd(cmd)

return cmd
Expand Down

0 comments on commit 88b89d1

Please sign in to comment.