Skip to content

Commit

Permalink
added function for forfeit exipred games
Browse files Browse the repository at this point in the history
  • Loading branch information
oakenknight committed Dec 12, 2023
1 parent 1c8cc84 commit 2986e67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/checkers/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}

// EndBlock executes all ABCI EndBlock logic respective to the capability module. It
// returns no validator updates.
func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {
am.keeper.ForfeitExpiredGames(sdk.WrapSDKContext(ctx))
return []abci.ValidatorUpdate{}
}

0 comments on commit 2986e67

Please sign in to comment.