Skip to content

Commit

Permalink
Merge pull request #406 from lukema95/remove-redundant-ValidateBasic-…
Browse files Browse the repository at this point in the history
…check

refactor(cli): remove ValidateBasic in cli
  • Loading branch information
pr0n00gler authored Jan 12, 2024
2 parents 0b3715f + 79fd29c commit 33570a1
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions x/dex/client/cli/tx_cancel_limit_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ func CmdCancelLimitOrder() *cobra.Command {
clientCtx.GetFromAddress().String(),
args[0],
)
if err := msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
3 changes: 0 additions & 3 deletions x/dex/client/cli/tx_deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ func CmdDeposit() *cobra.Command {
FeesUint,
DepositOptions,
)
if err := msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
3 changes: 0 additions & 3 deletions x/dex/client/cli/tx_multi_hop_swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ func CmdMultiHopSwap() *cobra.Command {
exitLimitPriceDec,
pickBest,
)
if err := msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
3 changes: 0 additions & 3 deletions x/dex/client/cli/tx_place_limit_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ func CmdPlaceLimitOrder() *cobra.Command {
goodTil,
maxAmountOutIntP,
)
if err := msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
3 changes: 0 additions & 3 deletions x/dex/client/cli/tx_withdrawl.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ func CmdWithdrawal() *cobra.Command {
TicksIndexesInt,
FeesUint,
)
if err := msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
3 changes: 0 additions & 3 deletions x/dex/client/cli/tx_withdrawl_filled_limit_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ func CmdWithdrawFilledLimitOrder() *cobra.Command {
clientCtx.GetFromAddress().String(),
args[0],
)
if err := msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
7 changes: 0 additions & 7 deletions x/interchainqueries/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ func RemoveInterchainQueryCmd() *cobra.Command {
}

msg := types.NewMsgRemoveInterchainQuery(sender, queryID)
if err = msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
Expand Down Expand Up @@ -92,10 +89,6 @@ func SubmitQueryResultCmd() *cobra.Command {
return fmt.Errorf("failed to unmarshal query result: %w", err)
}

if err = msg.ValidateBasic(); err != nil {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}
Expand Down

0 comments on commit 33570a1

Please sign in to comment.