Skip to content

Commit

Permalink
Merge pull request #45 from chain4energy/v1.4.3
Browse files Browse the repository at this point in the history
V1.4.3
  • Loading branch information
pablokulpa authored Sep 19, 2024
2 parents 6f5b1ed + d0b2216 commit 608c6c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
wasmd "github.com/CosmWasm/wasmd/app"
v131 "github.com/chain4energy/c4e-chain/app/upgrades/v131"
v140 "github.com/chain4energy/c4e-chain/app/upgrades/v140"
v141 "github.com/chain4energy/c4e-chain/app/upgrades/v141"
v143 "github.com/chain4energy/c4e-chain/app/upgrades/v143"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
ibchookstypes "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/types"

Expand Down Expand Up @@ -232,7 +232,7 @@ var (
_ servertypes.Application = (*App)(nil)
_ runtime.AppI = (*App)(nil)

Upgrades = []upgrades.Upgrade{v110.Upgrade, v120.Upgrade, v130.Upgrade, v131.Upgrade, v140.Upgrade, v141.Upgrade, v141.UpgradeTn}
Upgrades = []upgrades.Upgrade{v110.Upgrade, v120.Upgrade, v130.Upgrade, v131.Upgrade, v140.Upgrade, v143.Upgrade, v143.UpgradeTn}
)

func init() {
Expand Down Expand Up @@ -1142,18 +1142,18 @@ func (app *App) setupUpgradeStoreLoaders() {
return
}

for _, upgrade := range Upgrades {
if upgradeInfo.Name == upgrade.UpgradeName {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &upgrade.StoreUpgrades))
for i := range Upgrades {
if upgradeInfo.Name == Upgrades[i].UpgradeName {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &Upgrades[i].StoreUpgrades))
}
}
}

func (app *App) SetupUpgradeHandlers() {
for _, upgrade := range Upgrades {
for i := range Upgrades {
app.UpgradeKeeper.SetUpgradeHandler(
upgrade.UpgradeName,
upgrade.CreateUpgradeHandler(
Upgrades[i].UpgradeName,
Upgrades[i].CreateUpgradeHandler(
app.mm,
app.configurator,
app.BaseApp,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v141
package v143

import (
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
Expand All @@ -9,8 +9,8 @@ import (
ibchookstypes "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/types"
)

const UpgradeName = "v1.4.1"
const UpgradeNameTn = "v1.4.1-tn"
const UpgradeName = "v1.4.3"
const UpgradeNameTn = "v1.4.3-tn"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v141
package v143

import (
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
Expand Down

0 comments on commit 608c6c2

Please sign in to comment.