fix(autocli): Fix subcmd added to root cmd (#15378)

This commit is contained in:
Jeancarlo Barrios 2023-03-13 12:18:27 -06:00 committed by GitHub
parent 6a03586074
commit e30f2e8907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ func (b *Builder) BuildMsgCommand(moduleOptions map[string]*autocliv1.ModuleOpti
txCmdDesc := modOpts.Tx
if txCmdDesc != nil {
subCmd := topLevelCmd(moduleName, fmt.Sprintf("Transations commands for the %s module", moduleName))
err := b.AddMsgServiceCommands(cmd, txCmdDesc)
err := b.AddMsgServiceCommands(subCmd, txCmdDesc)
if err != nil {
return err
}