@@ -13,7 +13,6 @@ import (
1313
1414	"github.com/cosmos/cosmos-sdk/baseapp" 
1515	"github.com/cosmos/cosmos-sdk/client" 
16- 	"github.com/cosmos/cosmos-sdk/client/config" 
1716	"github.com/cosmos/cosmos-sdk/client/debug" 
1817	"github.com/cosmos/cosmos-sdk/client/flags" 
1918	"github.com/cosmos/cosmos-sdk/client/keys" 
@@ -47,20 +46,13 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
4746		WithInput (os .Stdin ).
4847		WithAccountRetriever (types.AccountRetriever {}).
4948		WithHomeDir (kitools .DefaultNodeHome ).
50- 		WithViper ( "" )
49+ 		WithBroadcastMode ( flags . BroadcastBlock )
5150
5251	rootCmd  :=  & cobra.Command {
5352		Use :   "kid" ,
5453		Short : "KiChain app with IBC" ,
5554		PersistentPreRunE : func (cmd  * cobra.Command , _  []string ) error  {
56- 			initClientCtx  =  client .ReadHomeFlag (initClientCtx , cmd )
57- 
58- 			initClientCtx , err  :=  config .ReadFromClientConfig (initClientCtx )
59- 			if  err  !=  nil  {
60- 				return  err 
61- 			}
62- 
63- 			if  err  =  client .SetCmdClientContextHandler (initClientCtx , cmd ); err  !=  nil  {
55+ 			if  err  :=  client .SetCmdClientContextHandler (initClientCtx , cmd ); err  !=  nil  {
6456				return  err 
6557			}
6658
@@ -89,7 +81,6 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
8981		tmcli .NewCompletionCmd (rootCmd , true ),
9082		testnetCmd (kitools .ModuleBasics , banktypes.GenesisBalancesIterator {}),
9183		debug .Cmd (),
92- 		config .Cmd (),
9384	)
9485
9586	server .AddCommands (rootCmd , kitools .DefaultNodeHome , newApp , createSimappAndExport , addModuleInitFlags )
0 commit comments