Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
7009a2e0cd
commit
647907de0d
|
@ -37,6 +37,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## Improvements
|
||||||
|
|
||||||
|
* (x/authz,x/feegrant) [#20590](https://github.com/cosmos/cosmos-sdk/pull/20590) Provide updated keeper in depinject for authz and feegrant modules.
|
||||||
|
|
||||||
## [v0.47.11](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.11) - 2024-04-22
|
## [v0.47.11](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.11) - 2024-04-22
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
|
@ -192,7 +192,7 @@ type AuthzOutputs struct {
|
||||||
func ProvideModule(in AuthzInputs) AuthzOutputs {
|
func ProvideModule(in AuthzInputs) AuthzOutputs {
|
||||||
k := keeper.NewKeeper(in.Key, in.Cdc, in.MsgServiceRouter, in.AccountKeeper)
|
k := keeper.NewKeeper(in.Key, in.Cdc, in.MsgServiceRouter, in.AccountKeeper)
|
||||||
m := NewAppModule(in.Cdc, k, in.AccountKeeper, in.BankKeeper, in.Registry)
|
m := NewAppModule(in.Cdc, k, in.AccountKeeper, in.BankKeeper, in.Registry)
|
||||||
return AuthzOutputs{AuthzKeeper: k, Module: m}
|
return AuthzOutputs{AuthzKeeper: k.SetBankKeeper(in.BankKeeper) /* depinject ux improvement */, Module: m}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ____________________________________________________________________________
|
// ____________________________________________________________________________
|
||||||
|
|
|
@ -121,7 +121,7 @@ type AppModule struct {
|
||||||
func NewAppModule(cdc codec.Codec, ak feegrant.AccountKeeper, bk feegrant.BankKeeper, keeper keeper.Keeper, registry cdctypes.InterfaceRegistry) AppModule {
|
func NewAppModule(cdc codec.Codec, ak feegrant.AccountKeeper, bk feegrant.BankKeeper, keeper keeper.Keeper, registry cdctypes.InterfaceRegistry) AppModule {
|
||||||
return AppModule{
|
return AppModule{
|
||||||
AppModuleBasic: AppModuleBasic{cdc: cdc},
|
AppModuleBasic: AppModuleBasic{cdc: cdc},
|
||||||
keeper: keeper.SetBankKeeper(bk), // Super ugly hack to not be api breaking in v0.50 and v0.47,
|
keeper: keeper.SetBankKeeper(bk), // Super ugly hack to not be api breaking in v0.50 and v0.47
|
||||||
accountKeeper: ak,
|
accountKeeper: ak,
|
||||||
bankKeeper: bk,
|
bankKeeper: bk,
|
||||||
registry: registry,
|
registry: registry,
|
||||||
|
@ -197,7 +197,7 @@ type FeegrantInputs struct {
|
||||||
func ProvideModule(in FeegrantInputs) (keeper.Keeper, appmodule.AppModule) {
|
func ProvideModule(in FeegrantInputs) (keeper.Keeper, appmodule.AppModule) {
|
||||||
k := keeper.NewKeeper(in.Cdc, in.Key, in.AccountKeeper)
|
k := keeper.NewKeeper(in.Cdc, in.Key, in.AccountKeeper)
|
||||||
m := NewAppModule(in.Cdc, in.AccountKeeper, in.BankKeeper, k, in.Registry)
|
m := NewAppModule(in.Cdc, in.AccountKeeper, in.BankKeeper, k, in.Registry)
|
||||||
return k, m
|
return k.SetBankKeeper(in.BankKeeper) /* depinject ux improvement */, m
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppModuleSimulation functions
|
// AppModuleSimulation functions
|
||||||
|
|
Loading…
Reference in New Issue