Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
73eea7c93a
commit
e9aece088d
@ -39,9 +39,18 @@ func (a *AppBuilder) Build(db corestore.KVStoreWithBatch, traceStore io.Writer,
|
||||
baseAppOptions = append(baseAppOptions, option)
|
||||
}
|
||||
|
||||
// set routers first in case they get modified by other options
|
||||
baseAppOptions = append(
|
||||
[]func(*baseapp.BaseApp){
|
||||
func(bApp *baseapp.BaseApp) {
|
||||
bApp.SetMsgServiceRouter(a.app.msgServiceRouter)
|
||||
bApp.SetGRPCQueryRouter(a.app.grpcQueryRouter)
|
||||
},
|
||||
},
|
||||
baseAppOptions...,
|
||||
)
|
||||
|
||||
bApp := baseapp.NewBaseApp(a.app.config.AppName, a.app.logger, db, nil, baseAppOptions...)
|
||||
bApp.SetMsgServiceRouter(a.app.msgServiceRouter)
|
||||
bApp.SetGRPCQueryRouter(a.app.grpcQueryRouter)
|
||||
bApp.SetCommitMultiStoreTracer(traceStore)
|
||||
bApp.SetVersion(version.Version)
|
||||
bApp.SetInterfaceRegistry(a.app.interfaceRegistry)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user