-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove ValidateBasic in cli #908
base: main
Are you sure you want to change the base?
refactor: remove ValidateBasic in cli #908
Conversation
WalkthroughThe recent modifications across several CLI components of a protocol involve the removal of message validation checks prior to the generation and broadcasting of transactions. This alteration streamlines the transaction process by excluding the preliminary validation step, potentially impacting the control flow and error handling mechanisms within the transaction operations. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (5)
- protocol/x/clob/client/cli/tx_cancel_order.go (1 hunks)
- protocol/x/clob/client/cli/tx_place_order.go (1 hunks)
- protocol/x/sending/client/cli/tx_create_transfer.go (1 hunks)
- protocol/x/sending/client/cli/tx_deposit_to_subaccount.go (1 hunks)
- protocol/x/sending/client/cli/tx_withdraw_from_subaccount.go (1 hunks)
Files skipped from review due to trivial changes (1)
- protocol/x/sending/client/cli/tx_withdraw_from_subaccount.go
Additional comments: 4
protocol/x/clob/client/cli/tx_cancel_order.go (1)
- 49-52: Confirm that the
GenerateOrBroadcastTxCLI
function internally callsValidateBasic
for theMsgCancelOrderShortTerm
message type to ensure message validation is still performed.protocol/x/sending/client/cli/tx_create_transfer.go (1)
- 62-65: Confirm that the
GenerateOrBroadcastTxCLI
function internally callsValidateBasic
for theMsgCreateTransfer
message type to ensure message validation is still performed.protocol/x/clob/client/cli/tx_place_order.go (1)
- 74-78: Confirm that the
GenerateOrBroadcastTxCLI
function internally callsValidateBasic
for theMsgPlaceOrder
message type to ensure message validation is still performed.protocol/x/sending/client/cli/tx_deposit_to_subaccount.go (1)
- 57-60: Confirm that the
GenerateOrBroadcastTxCLI
function internally callsValidateBasic
for theMsgDepositToSubaccount
message type to ensure message validation is still performed.
Changelist
The
ValidateBasic
function has been called in theGenerateOrBroadcastTxWithFactory
function, so we no longer need to add theValidateBasic
function when writing Cli. Related PRs can be viewed at: cosmos/cosmos-sdk#9236 (comment)Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.