Skip to content

Commit

Permalink
CNS-fix init keepers (#451)
Browse files Browse the repository at this point in the history
* fix init keepers

* adding upgrade handler

---------

Co-authored-by: Yarom Swisa <yarom@lavanet.xyz git config --global user.name Yarom>
  • Loading branch information
Yaroms and Yarom Swisa authored Apr 30, 2023
1 parent bf83724 commit 5015fe3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,34 +460,34 @@ func New(
)
projectsModule := projectsmodule.NewAppModule(appCodec, app.ProjectsKeeper)

app.PairingKeeper = *pairingmodulekeeper.NewKeeper(
app.SubscriptionKeeper = *subscriptionmodulekeeper.NewKeeper(
appCodec,
keys[pairingmoduletypes.StoreKey],
keys[pairingmoduletypes.MemStoreKey],
app.GetSubspace(pairingmoduletypes.ModuleName),
keys[subscriptionmoduletypes.StoreKey],
keys[subscriptionmoduletypes.MemStoreKey],
app.GetSubspace(subscriptionmoduletypes.ModuleName),

app.BankKeeper,
app.AccountKeeper,
app.SpecKeeper,
&app.EpochstorageKeeper,
app.ProjectsKeeper,
app.SubscriptionKeeper,
app.PlansKeeper,
)
pairingModule := pairingmodule.NewAppModule(appCodec, app.PairingKeeper, app.AccountKeeper, app.BankKeeper)
subscriptionModule := subscriptionmodule.NewAppModule(appCodec, app.SubscriptionKeeper, app.AccountKeeper, app.BankKeeper)

app.SubscriptionKeeper = *subscriptionmodulekeeper.NewKeeper(
app.PairingKeeper = *pairingmodulekeeper.NewKeeper(
appCodec,
keys[subscriptionmoduletypes.StoreKey],
keys[subscriptionmoduletypes.MemStoreKey],
app.GetSubspace(subscriptionmoduletypes.ModuleName),
keys[pairingmoduletypes.StoreKey],
keys[pairingmoduletypes.MemStoreKey],
app.GetSubspace(pairingmoduletypes.ModuleName),

app.BankKeeper,
app.AccountKeeper,
app.SpecKeeper,
&app.EpochstorageKeeper,
app.ProjectsKeeper,
app.PlansKeeper,
app.SubscriptionKeeper,
)
subscriptionModule := subscriptionmodule.NewAppModule(appCodec, app.SubscriptionKeeper, app.AccountKeeper, app.BankKeeper)
pairingModule := pairingmodule.NewAppModule(appCodec, app.PairingKeeper, app.AccountKeeper, app.BankKeeper)

app.ConflictKeeper = *conflictmodulekeeper.NewKeeper(
appCodec,
Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/empty_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@ var Upgrade_0_10_0 = Upgrade{
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}

var Upgrade_0_10_1 = Upgrade{
UpgradeName: "v0.10.1",
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}

0 comments on commit 5015fe3

Please sign in to comment.