Skip to content

Commit

Permalink
[OTE-840] add missing HasEndBlocker interface (backport #2384) (#2385)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammed Affan <[email protected]>
  • Loading branch information
mergify[bot] and affanv14 authored Sep 27, 2024
1 parent 7cbf624 commit de1265d
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 de1265d

Please sign in to comment.