fix(runtime): PreBlocker getting overwritten if set as a baseapp option (#17944)

This commit is contained in:
Facundo Medica
2023-10-10 14:46:12 +00:00
committed by GitHub
parent ea0a9b2f5f
commit 3ac7c0effd
4 changed files with 8 additions and 3 deletions
+4
View File
@@ -184,6 +184,10 @@ func (app *BaseApp) SetInitChainer(initChainer sdk.InitChainer) {
app.initChainer = initChainer
}
func (app *BaseApp) PreBlocker() sdk.PreBlocker {
return app.preBlocker
}
func (app *BaseApp) SetPreBlocker(preBlocker sdk.PreBlocker) {
if app.sealed {
panic("SetPreBlocker() on sealed BaseApp")