Skip to content

Commit

Permalink
[OTE-840] add missing HasEndBlocker interface (#2384)
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 authored Sep 27, 2024
1 parent 60cc7aa commit 7193a10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion protocol/x/affiliates/module.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package affiliates

import (
"context"
"encoding/json"
"fmt"

Expand All @@ -25,6 +26,7 @@ var (
_ module.HasGenesisBasics = AppModuleBasic{}

_ appmodule.AppModule = AppModule{}
_ appmodule.HasEndBlocker = AppModule{}
_ module.HasConsensusVersion = AppModule{}
_ module.HasGenesis = AppModule{}
_ module.HasServices = AppModule{}
Expand Down Expand Up @@ -143,9 +145,10 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
// be set to 1.
func (AppModule) ConsensusVersion() uint64 { return 1 }

func (am AppModule) EndBlock(ctx sdk.Context) {
func (am AppModule) EndBlock(ctx context.Context) error {
EndBlocker(
lib.UnwrapSDKContext(ctx, types.ModuleName),
&am.keeper,
)
return nil
}

0 comments on commit 7193a10

Please sign in to comment.