Skip to content

[IF-FINDING-007] Reviewed: Minor observations and improvements related to the Cosmos SDK v0.50 Upgrade#69

Merged
AdriaCarrera merged 1 commit intomainfrom
fix/IF-FINDING-007-remove-txcmd
Mar 18, 2025
Merged

[IF-FINDING-007] Reviewed: Minor observations and improvements related to the Cosmos SDK v0.50 Upgrade#69
AdriaCarrera merged 1 commit intomainfrom
fix/IF-FINDING-007-remove-txcmd

Conversation

@AdriaCarrera
Copy link
Contributor

[IF-FINDING-007] Minor observations and improvements related to the Cosmos SDK v0.50 Upgrade

Description

  • The AppModuleBasic interface has been simplified. Defining GetTxCmd() *cobra.Command and GetQueryCmd() *cobra.Command is no longer required. The module manager detects when module commands are defined. If AutoCLI is enabled, EnhanceRootCommand() will add the auto-generated commands to the root command, unless a custom module command is defined and register that one instead.
    • For the x/poa module GetTxCmd and GetQueryCmd (code ref) can be removed, since EnhanceRootCommand is added code ref.

Problem scenarios

No issues, only following the upgrade guide.

Recommendation

As listed in the Description section.

Applied changes

  • Removed GetTxCmd from cli

Base automatically changed from chore/bump-deps to main March 18, 2025 15:46
@AdriaCarrera AdriaCarrera merged commit dd3525e into main Mar 18, 2025
1 check passed
@AdriaCarrera AdriaCarrera deleted the fix/IF-FINDING-007-remove-txcmd branch March 18, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants