Skip to content

Commit

Permalink
fix(cosmos): add alternative upgrade name for emerynet
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Nov 14, 2023
1 parent 26244e8 commit ebc4c7f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,9 @@ func NewAgoricApp(
app.SetEndBlocker(app.EndBlocker)

const (
upgradeName = "agoric-upgrade-12"
upgradeNameTest = "agorictest-upgrade-12"
upgradeName = "agoric-upgrade-12"
upgradeNameTest = "agorictest-upgrade-12"
upgradeNameEmerynet = "agoric-upgrade-12-rc0"
)

app.UpgradeKeeper.SetUpgradeHandler(
Expand All @@ -804,6 +805,10 @@ func NewAgoricApp(
upgradeNameTest,
upgrade12Handler(app, upgradeNameTest),
)
app.UpgradeKeeper.SetUpgradeHandler(
upgradeNameEmerynet,
upgrade12Handler(app, upgradeNameTest),
)

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
Expand Down

0 comments on commit ebc4c7f

Please sign in to comment.