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
[CORE-538] Fix CLI tests to correctly generate module address #981
Conversation
WalkthroughThe codebase has been updated to streamline the handling of account addresses and improve the testing of command-line interfaces (CLI). A dependency on an external package for address generation has been replaced by an internal module function, simplifying the address calculation process. Additionally, previously skipped tests in the CLI related to bank balance issues in the subaccounts module have now been re-enabled, suggesting that the underlying problems have been addressed. 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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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 (4)
- protocol/testutil/bank/bank_helpers.go (2 hunks)
- protocol/x/clob/client/cli/cancel_order_cli_test.go (2 hunks)
- protocol/x/clob/client/cli/liquidations_cli_test.go (1 hunks)
- protocol/x/clob/client/cli/place_order_cli_test.go (1 hunks)
Files skipped from review due to trivial changes (2)
- protocol/x/clob/client/cli/cancel_order_cli_test.go
- protocol/x/clob/client/cli/place_order_cli_test.go
Additional comments: 3
protocol/testutil/bank/bank_helpers.go (2)
- 11-11: Import of
authtypes
package is correct and necessary for the use ofNewModuleAddress
.- 28-28: The replacement of the address calculation logic with
authtypes.NewModuleAddress(moduleName)
is correct and aligns with the PR objectives.protocol/x/clob/client/cli/liquidations_cli_test.go (1)
- 54-59: > Note: This review was outside the patches, and no patch overlapping with it was found. Original lines [1-1]
Re-enabling of the
TestLiquidationOrderIntegrationTestSuite
function is consistent with the PR objectives, which state that previously skipped tests are now operational.
Changelist
[CORE-538] Fix CLI tests to correctly generate module address.
Incorrectly converted how we generate module address during Cosmos 0.50 upgrade. This was the only case of where I swapped module address generation with using the signing context erroneously.
Test Plan
Re-enabled existing tests.
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
.