Skip to content

Commit

Permalink
refactor: Remove ValidateBasic in cli (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 authored and omritoptix committed Jan 16, 2024
1 parent 532317a commit 87a18a1
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 25 deletions.
3 changes: 0 additions & 3 deletions x/rollapp/client/cli/tx_create_rollapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ func CmdCreateRollapp() *cobra.Command {
metadatas,
)

if err := msg.ValidateBasic(); err != nil {
return err
}
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
}
Expand Down
4 changes: 1 addition & 3 deletions x/rollapp/client/cli/tx_update_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ func CmdUpdateState() *cobra.Command {
argVersion,
argBDs,
)
if err := msg.ValidateBasic(); err != nil {
return err
}

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

if err := msg.ValidateBasic(); err != nil {
return err
}
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
}
Expand Down
4 changes: 0 additions & 4 deletions x/streamer/client/cli/tx_create_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ func NewCmdSubmitCreateStreamProposal() *cobra.Command {
return err
}

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

txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever)
return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg)
},
Expand Down
4 changes: 0 additions & 4 deletions x/streamer/client/cli/tx_replace_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ func NewCmdSubmitReplaceStreamDistributionProposal() *cobra.Command {
return err
}

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

txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever)
return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg)
},
Expand Down
4 changes: 0 additions & 4 deletions x/streamer/client/cli/tx_terminate_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ func NewCmdSubmitTerminateStreamProposal() *cobra.Command {
return err
}

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

txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever)
return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg)
},
Expand Down
4 changes: 0 additions & 4 deletions x/streamer/client/cli/tx_update_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ func NewCmdSubmitUpdateStreamDistributionProposal() *cobra.Command {
return err
}

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

txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever)
return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg)
},
Expand Down

0 comments on commit 87a18a1

Please sign in to comment.