Skip to content

Commit

Permalink
fix command adding and refactor name
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed May 22, 2024
1 parent e8bc9a3 commit 7fba1ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions x/marker/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2563,7 +2563,7 @@ func (s *IntegrationTestSuite) TestUpdateMarkerParamsCmd() {
}{
{
name: "update marker params, should succeed",
cmd: markercli.NewUpdateMarkerParamsCmd(),
cmd: markercli.GetUpdateMarkerParamsCmd(),
args: []string{
"true",
"[a-zA-Z][a-zA-Z0-9\\-\\.]{2,83}",
Expand All @@ -2573,7 +2573,7 @@ func (s *IntegrationTestSuite) TestUpdateMarkerParamsCmd() {
},
{
name: "update marker params, should fail incorrect governance flag",
cmd: markercli.NewUpdateMarkerParamsCmd(),
cmd: markercli.GetUpdateMarkerParamsCmd(),
args: []string{
"invalid",
"[a-zA-Z][a-zA-Z0-9\\-\\.]{2,83}",
Expand All @@ -2583,7 +2583,7 @@ func (s *IntegrationTestSuite) TestUpdateMarkerParamsCmd() {
},
{
name: "update marker params, should fail incorrect maxSupply",
cmd: markercli.NewUpdateMarkerParamsCmd(),
cmd: markercli.GetUpdateMarkerParamsCmd(),
args: []string{
"true",
"[a-zA-Z][a-zA-Z0-9\\-\\.]{2,83}",
Expand Down
6 changes: 3 additions & 3 deletions x/marker/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func NewTxCmd() *cobra.Command {
GetCmdRemoveAdministratorProposal(),
GetCmdChangeStatusProposal(),
GetCmdWithdrawEscrowProposal(),
GetCmdMarkerProposal(),
GetUpdateMarkerParamsCmd(),
)
return txCmd
}
Expand Down Expand Up @@ -1554,8 +1554,8 @@ func generateOrBroadcastOptGovProp(clientCtx client.Context, flagSet *pflag.Flag
return tx.GenerateOrBroadcastTxCLI(clientCtx, flagSet, msg)
}

// NewUpdateMarkerParamsCmd creates a command to update the marker module's params via governance proposal.
func NewUpdateMarkerParamsCmd() *cobra.Command {
// GetUpdateMarkerParamsCmd creates a command to update the marker module's params via governance proposal.
func GetUpdateMarkerParamsCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "update-marker-params <enable-governance> <unrestricted-denom-regex> <max-supply>",
Short: "Update the marker module's params via governance proposal",
Expand Down

0 comments on commit 7fba1ec

Please sign in to comment.