Skip to content

Commit

Permalink
fix ICS equivocation proposal (#2197) (#2199)
Browse files Browse the repository at this point in the history
* replace sdk with Shawn's fork

* fix equivocation bug on ICS

* clean go mod

(cherry picked from commit d943cc3)

Co-authored-by: Simon Noetzlin <simon.ntz@gmail.com>
  • Loading branch information
mergify[bot] and sainoe authored Feb 15, 2023
1 parent 4a7ba29 commit 843b749
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ func NewAppKeeper(
appKeepers.ScopedIBCKeeper,
)

// EvidenceKeeper must be created before ProviderKeeper
appKeepers.EvidenceKeeper = *evidencekeeper.NewKeeper(
appCodec,
appKeepers.keys[evidencetypes.StoreKey],
&appKeepers.StakingKeeper,
appKeepers.SlashingKeeper,
)

appKeepers.ProviderKeeper = ibcproviderkeeper.NewKeeper(
appCodec,
appKeepers.keys[providertypes.StoreKey],
Expand Down Expand Up @@ -366,13 +374,6 @@ func NewAppKeeper(

appKeepers.IBCKeeper.SetRouter(ibcRouter)

appKeepers.EvidenceKeeper = *evidencekeeper.NewKeeper(
appCodec,
appKeepers.keys[evidencetypes.StoreKey],
&appKeepers.StakingKeeper,
appKeepers.SlashingKeeper,
)

return appKeepers
}

Expand Down

0 comments on commit 843b749

Please sign in to comment.