Skip to content

Commit

Permalink
fix handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gachouchani1999 committed May 3, 2024
1 parent 66be440 commit 42f46c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,12 @@ func (app *App) Name() string { return app.BaseApp.Name() }
// BeginBlocker application updates every begin block
func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
resp := app.mm.BeginBlock(ctx, req)
DeleteProposal(app, 6)
// Delete proposal and check if err is nil
// This is a temporary solution to delete defunct proposals
err := DeleteProposal(app, 6)
if err != nil {
// Do nothing
}
return resp
}

Expand Down

0 comments on commit 42f46c9

Please sign in to comment.