Skip to content

Commit

Permalink
feat: add method to access check state in app
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Aug 10, 2023
1 parent 7861c1d commit b0d00fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ func (app *BaseApp) getState(mode runTxMode) *state {
}
}

func (app *BaseApp) GetCheckState() *state {
return app.checkState
}

func (app *BaseApp) getBlockGasMeter(ctx sdk.Context) storetypes.GasMeter {
if maxGas := app.GetMaximumBlockGas(ctx); maxGas > 0 {
return storetypes.NewGasMeter(maxGas)
Expand Down

0 comments on commit b0d00fe

Please sign in to comment.