Merge PR #6765: x/auth: Finish CLI Refactor

This commit is contained in:
Alexander Bezobchuk
2020-07-17 16:20:45 -04:00
committed by GitHub
parent f33749263f
commit e59781eca7
6 changed files with 52 additions and 46 deletions
+4 -4
View File
@@ -107,11 +107,11 @@ func queryCommand() *cobra.Command {
}
cmd.AddCommand(
authcmd.GetAccountCmd(encodingConfig.Amino),
rpc.ValidatorCommand(encodingConfig.Amino),
authcmd.GetAccountCmd(),
rpc.ValidatorCommand(),
rpc.BlockCommand(),
authcmd.QueryTxsByEventsCmd(encodingConfig.Amino),
authcmd.QueryTxCmd(encodingConfig.Amino),
authcmd.QueryTxsByEventsCmd(),
authcmd.QueryTxCmd(),
)
simapp.ModuleBasics.AddQueryCommands(cmd, initClientCtx)
+2 -1
View File
@@ -211,7 +211,8 @@ func InitTestnet(
if err != nil {
return fmt.Errorf("error creating tx: %w", err)
}
txBldr.WithChainID(chainID).WithMemo(memo).WithKeybase(kb)
txBldr = txBldr.WithChainID(chainID).WithMemo(memo).WithKeybase(kb)
signedTx, err := txBldr.SignStdTx(nodeDirName, tx, false)
if err != nil {