Skip to content

Commit

Permalink
fix(cosmos): express dependency between proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Oct 29, 2024
1 parent 1bb7210 commit 676e833
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions golang/cosmos/app/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,21 @@ func unreleasedUpgradeHandler(app *GaiaApp, targetUpgrade string) func(sdk.Conte
if err != nil {
return nil, err
} else if priceFeedUpdate != nil {
CoreProposalSteps = append(CoreProposalSteps, priceFeedUpdate)
CoreProposalSteps = append(CoreProposalSteps,
priceFeedUpdate,
// The following have a dependency onto the price feed proposal
vm.CoreProposalStepForModules(
"@agoric/builders/scripts/vats/add-auction.js",
),
vm.CoreProposalStepForModules(
"@agoric/builders/scripts/vats/upgradeVaults.js",
),
)
}

// Each CoreProposalStep runs sequentially, and can be constructed from
// one or more modules executing in parallel within the step.
CoreProposalSteps = append(CoreProposalSteps,
vm.CoreProposalStepForModules(
"@agoric/builders/scripts/vats/add-auction.js",
),
vm.CoreProposalStepForModules(
"@agoric/builders/scripts/vats/upgradeVaults.js",
),
vm.CoreProposalStepForModules(
// Upgrade Zoe (no new ZCF needed).
"@agoric/builders/scripts/vats/upgrade-zoe.js",
Expand Down

0 comments on commit 676e833

Please sign in to comment.