@@ -73,7 +73,7 @@ type AppKeepers struct {
7373 StakingKeeper stakingkeeper.Keeper
7474 SlashingKeeper slashingkeeper.Keeper
7575 MintKeeper mintkeeper.Keeper
76- DistrKeeper distrkeeper.Keeper
76+ DistrKeeper * distrkeeper.Keeper
7777 GovKeeper govkeeper.Keeper
7878 CrisisKeeper crisiskeeper.Keeper
7979 UpgradeKeeper upgradekeeper.Keeper
@@ -197,7 +197,7 @@ func NewAppKeeper(
197197 appKeepers .BankKeeper ,
198198 gitopiatypes .MinterAccountName ,
199199 )
200- appKeepers . DistrKeeper = distrkeeper .NewKeeper (
200+ distrKeeper : = distrkeeper .NewKeeper (
201201 appCodec ,
202202 appKeepers .keys [distrtypes .StoreKey ],
203203 appKeepers .GetSubspace (distrtypes .ModuleName ),
@@ -206,6 +206,7 @@ func NewAppKeeper(
206206 & stakingKeeper ,
207207 authtypes .FeeCollectorName ,
208208 )
209+ appKeepers .DistrKeeper = & distrKeeper
209210 appKeepers .SlashingKeeper = slashingkeeper .NewKeeper (
210211 appCodec ,
211212 appKeepers .keys [slashingtypes .StoreKey ],
@@ -243,7 +244,7 @@ func NewAppKeeper(
243244 govRouter := govv1beta1 .NewRouter ()
244245 govRouter .AddRoute (govtypes .RouterKey , govv1beta1 .ProposalHandler ).
245246 AddRoute (paramproposal .RouterKey , params .NewParamChangeProposalHandler (appKeepers .ParamsKeeper )).
246- AddRoute (distrtypes .RouterKey , distr .NewCommunityPoolSpendProposalHandler (appKeepers .DistrKeeper )).
247+ AddRoute (distrtypes .RouterKey , distr .NewCommunityPoolSpendProposalHandler (* appKeepers .DistrKeeper )).
247248 AddRoute (upgradetypes .RouterKey , upgrade .NewSoftwareUpgradeProposalHandler (appKeepers .UpgradeKeeper )).
248249 AddRoute (ibcclienttypes .RouterKey , ibcclient .NewClientProposalHandler (appKeepers .IBCKeeper .ClientKeeper ))
249250 govConfig := govtypes .DefaultConfig ()
@@ -299,13 +300,14 @@ func NewAppKeeper(
299300 appKeepers .AuthzKeeper ,
300301 appKeepers .BankKeeper ,
301302 appKeepers .MintKeeper ,
303+ appKeepers .DistrKeeper ,
302304 )
303305 appKeepers .RewardKeeper = * rewardskeeper .NewKeeper (
304- appCodec ,
305- appKeepers .keys [rewardtypes .StoreKey ],
306- appKeepers .keys [rewardtypes .MemStoreKey ],
307- & appKeepers .GitopiaKeeper ,
308- appKeepers .StakingKeeper ,
306+ appCodec ,
307+ appKeepers .keys [rewardtypes .StoreKey ],
308+ appKeepers .keys [rewardtypes .MemStoreKey ],
309+ & appKeepers .GitopiaKeeper ,
310+ appKeepers .StakingKeeper ,
309311 appKeepers .GovKeeper ,
310312 appKeepers .BankKeeper ,
311313 appKeepers .AccountKeeper ,
0 commit comments