You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added a staking module to add functionality on top of the default staking functionality.
However, if we don't copy the autocli.go file from the SDK's staking module into our own at runtime, we get a panic about re-defining a flag, which we aren't doing.
I would not expect us to have to copy that autocli.go file into our staking module to avoid this panic for a flag we don't re-define.
I think this is an SDK bug, as I couldn't find a reason for why our code would be causing this.
Cosmos SDK Version
0.50.*
How to reproduce?
You can check out our repo here.
If you remove the file found here.
Then compile with make install or make build that will still work.
But when you try to run the binary sedad --help for instance, the above panic will be shown.
The text was updated successfully, but these errors were encountered:
As soon as you use EnhanceRootCommand, you enable AutoCLI for all modules. This means AutoCLI will create commands and if autocli.go is not present the default behavior is to create flags for each query/transaction argument.
In the case of staking, the height flag clashes with the default sdk height flag, this is why we have it as well as positional parameter.
Imho this isn't a bug. If you wish to disable AutoCLI for that module, you can set it in your autocli.go.
Is there an existing issue for this?
Though it was similar to #2884.
What happened?
We added a staking module to add functionality on top of the default staking functionality.
However, if we don't copy the
autocli.go
file from the SDK's staking module into our own at runtime, we get a panic about re-defining a flag, which we aren't doing.I would not expect us to have to copy that
autocli.go
file into our staking module to avoid this panic for a flag we don't re-define.I think this is an SDK bug, as I couldn't find a reason for why our code would be causing this.
Cosmos SDK Version
0.50.*
How to reproduce?
You can check out our repo here.
If you remove the file found here.
Then compile with
make install
ormake build
that will still work.But when you try to run the binary
sedad --help
for instance, the above panic will be shown.The text was updated successfully, but these errors were encountered: