-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
fix(x/auth): duplicate vesting subcommands of <appd> tx --help
#18746
Conversation
WalkthroughThe changes in the 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 X ? TipsChat with CodeRabbit Bot (
|
<appd> tx --help
<appd> tx --help
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.
lgtm, just one comment
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.
Thank you!
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.
lgtm
Description
Running
<appd> tx --help
will show duplicatevesting
subcommand and missing<appd> tx auth update-params-proposal
subcommandThis is due to a duplicate implementation for
type HasCustomTxCommand interface
inx/auth/module.go AppModuleBasic
andx/auth/vesting/module.go AppModuleBasic
, by returning the samex/auth/vesting/cli/tx.go GetTxCmd()
.As
x/auth/autocli.go
has initialized theTX
field, we can simply return nil forx/auth/module.go AppModuleBasic GetTxCmd()
Note
This bug couldn't be reproduced all the time, but very high frequence
Before fix:
After fix: