Skip to content

Commit

Permalink
adding migration for v12.1.9-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Aug 22, 2024
1 parent 607d2ee commit deeef1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,15 +856,20 @@ func NewBridge(
},
)

if upgradeInfo.Name == "v12.1.9-rc1" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
if upgradeInfo.Name == "v12.1.9-rc2" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storetypes.StoreUpgrades{
Added: []string{bridgetypes.ModuleName},
}))
}

app.UpgradeKeeper.SetUpgradeHandler(
"v12.1.9-rc1",
"v12.1.9-rc2",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
app.BridgeKeeper.SetParams(ctx, bridgetypes.Params{
ModuleAdmin: "bridge1ykcl8yncutg8z8hr8fct043rx56j5a9ennk7dy",
EvmAdmin: "0x7926ED700899C317a75E519B5D0bdb72fF35eAE2",
})

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
Expand Down

0 comments on commit deeef1d

Please sign in to comment.