Skip to content

Commit

Permalink
Added missing keeper dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Jul 27, 2023
1 parent e7f524b commit 7d07576
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/node/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (k *Keeper) WithProviderKeeper(keeper expected.ProviderKeeper) {
k.provider = keeper
}

func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper) {
k.subscription = keeper
}

func (k *Keeper) Logger(ctx sdk.Context) log.Logger {
return ctx.Logger().With("module", "x/"+types.ModuleName)
}
Expand Down
3 changes: 3 additions & 0 deletions x/vpn/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@ func NewKeeper(
)
k.Node.WithDistributionKeeper(distributionKeeper)
k.Node.WithProviderKeeper(&k.Provider)
k.Node.WithSubscriptionKeeper(&k.Subscription)

k.Plan = plankeeper.NewKeeper(cdc, key)
k.Plan.WithBankKeeper(bankKeeper)
k.Plan.WithProviderKeeper(&k.Provider)
k.Plan.WithNodeKeeper(&k.Node)
k.Plan.WithSubscriptionKeeper(&k.Subscription)

k.Subscription = subscriptionkeeper.NewKeeper(
cdc, key, paramsKeeper.Subspace(fmt.Sprintf("%s/%s", types.ModuleName, subscriptiontypes.ModuleName)),
Expand Down

0 comments on commit 7d07576

Please sign in to comment.