Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Peters <[email protected]>
  • Loading branch information
orkunkl and alpe authored Dec 23, 2021
1 parent 8d740c2 commit c43453d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/wasm/client/cli/gov_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func ProposalPinCodesCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "pin-codes [code-ids]",
Short: "Submit a pin code proposal for pinning a code to cache",
Args: cobra.ExactArgs(1),
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down Expand Up @@ -414,7 +414,7 @@ func ProposalPinCodesCmd() *cobra.Command {

func parsePinCodesArgs(args []string) ([]uint64, error) {
var codeIds []uint64
for _, c := range args[1:] {
for _, c := range args {
codeID, err := strconv.ParseUint(c, 10, 64)
if err != nil {
return codeIds, fmt.Errorf("code IDs: %s", err)
Expand All @@ -428,7 +428,7 @@ func ProposalUnpinCodesCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "unpin-codes [code-ids]",
Short: "Submit a unpin code proposal for unpinning a code to cache",
Args: cobra.ExactArgs(1),
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down

0 comments on commit c43453d

Please sign in to comment.