Skip to content

Commit

Permalink
chore: new non-primary upgrade name just-in-case
Browse files Browse the repository at this point in the history
  • Loading branch information
mujahidkay committed Dec 9, 2024
1 parent f0bde0b commit 4292ab5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion golang/cosmos/app/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var upgradeNamesOfThisVersion = []string{
"agoric-upgrade-18-emerynet",
"agoric-upgrade-18-basic",
"agoric-upgrade-18-basic-2",
"agoric-upgrade-18-emerynet-rc3",
"agoric-upgrade-18-a3p",
}

Expand Down Expand Up @@ -59,7 +60,8 @@ func isPrimaryUpgradeName(name string) bool {
validUpgradeName("agoric-upgrade-18-basic"),
validUpgradeName("agoric-upgrade-18-a3p"):
return true
case validUpgradeName("agoric-upgrade-18-basic-2"):
case validUpgradeName("agoric-upgrade-18-basic-2"),
validUpgradeName("agoric-upgrade-18-emerynet-rc3"):
return false
default:
panic(fmt.Errorf("unexpected upgrade name %s", validUpgradeName(name)))
Expand Down

0 comments on commit 4292ab5

Please sign in to comment.