From 699dca8913b1138fb27f685aa61674c03336b992 Mon Sep 17 00:00:00 2001 From: Nick DeLuca Date: Wed, 2 Feb 2022 18:30:05 -0700 Subject: [PATCH] instantiate kava disk keeper before passing to community multi spend (#1153) proposal handler in gov routing --- app/app.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/app.go b/app/app.go index 587f72ec..f76ca246 100644 --- a/app/app.go +++ b/app/app.go @@ -421,6 +421,16 @@ func NewApp( scopedIBCKeeper, ) + app.kavadistKeeper = kavadistkeeper.NewKeeper( + appCodec, + keys[kavadisttypes.StoreKey], + kavadistSubspace, + app.bankKeeper, + app.accountKeeper, + app.distrKeeper, + app.ModuleAccountAddrs(), + ) + govRouter := govtypes.NewRouter() govRouter. AddRoute(govtypes.RouterKey, govtypes.ProposalHandler). @@ -456,15 +466,6 @@ func NewApp( ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule) app.ibcKeeper.SetRouter(ibcRouter) - app.kavadistKeeper = kavadistkeeper.NewKeeper( - appCodec, - keys[kavadisttypes.StoreKey], - kavadistSubspace, - app.bankKeeper, - app.accountKeeper, - app.distrKeeper, - app.ModuleAccountAddrs(), - ) app.auctionKeeper = auctionkeeper.NewKeeper( appCodec, keys[auctiontypes.StoreKey],