Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed May 22, 2024
1 parent 7fba1ec commit 1808904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/marker/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2589,7 +2589,7 @@ func (s *IntegrationTestSuite) TestUpdateMarkerParamsCmd() {
"[a-zA-Z][a-zA-Z0-9\\-\\.]{2,83}",
"invalid",
},
expectErr: `invalid max supply: invalid :%!w(<nil>)`,
expectErr: `invalid max supply: "invalid"`,
},
}

Expand Down
2 changes: 1 addition & 1 deletion x/marker/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ func GetUpdateMarkerParamsCmd() *cobra.Command {

maxSupply, ok := sdkmath.NewIntFromString(args[2])
if !ok {
return fmt.Errorf("invalid max supply: %v :%w", args[2], err)
return fmt.Errorf("invalid max supply: %q", args[2])
}

msg := types.NewMsgUpdateParamsRequest(
Expand Down

0 comments on commit 1808904

Please sign in to comment.