Skip to content

Commit 63d484a

Browse files
authored
chore!: remove x/slashing legacy querier (#12581)
1 parent 934b2b8 commit 63d484a

File tree

4 files changed

+4
-165
lines changed

4 files changed

+4
-165
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
6262

6363
### API Breaking Changes
6464

65+
* (x/slashing) [#12581](https://github.com/cosmos/cosmos-sdk/pull/12581) Remove `x/slashing` legacy querier.
6566
* (types) [\#12355](https://github.com/cosmos/cosmos-sdk/pull/12355) Remove the compile-time `types.DBbackend` variable. Removes usage of the same in server/util.go
6667
* (x/gov) [#12368](https://github.com/cosmos/cosmos-sdk/pull/12369) Gov keeper is now passed by reference instead of copy to make post-construction mutation of Hooks and Proposal Handlers possible at a framework level.
6768
* (simapp) [#12270](https://github.com/cosmos/cosmos-sdk/pull/12270) Remove `invCheckPeriod uint` attribute from `SimApp` struct as per migration of `x/crisis` to app wiring

x/slashing/keeper/querier.go

Lines changed: 0 additions & 92 deletions
This file was deleted.

x/slashing/keeper/querier_test.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

x/slashing/module.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ func (AppModule) QuerierRoute() string {
140140

141141
// LegacyQuerierHandler returns the slashing module sdk.Querier.
142142
func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {
143-
return keeper.NewQuerier(am.keeper, legacyQuerierCdc)
143+
return func(sdk.Context, []string, abci.RequestQuery) ([]byte, error) {
144+
return nil, fmt.Errorf("legacy querier not supported for the x/%s module", types.ModuleName)
145+
}
144146
}
145147

146148
// RegisterServices registers module services.

0 commit comments

Comments
 (0)