Skip to content

Commit

Permalink
Flush receipt with the correct state
Browse files Browse the repository at this point in the history
  • Loading branch information
codchen committed Nov 1, 2024
1 parent 02f1c2f commit 668cfa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (app *BaseApp) Commit(ctx context.Context) (res *abci.ResponseCommit, err e
retainHeight := app.GetBlockRetentionHeight(header.Height)

if app.preCommitHandler != nil {
if err := app.preCommitHandler(app.deliverState.ctx); err != nil {
if err := app.preCommitHandler(app.stateToCommit.ctx); err != nil {
panic(fmt.Errorf("error when executing commit handler: %s", err))
}
}
Expand Down

0 comments on commit 668cfa3

Please sign in to comment.