Skip to content

Commit

Permalink
Merge pull request #8872 from Agoric/mhofman/upgrade-wf-zoe-in-handler
Browse files Browse the repository at this point in the history
Upgrade wallet-factory and zoe in handler
  • Loading branch information
mergify[bot] authored Feb 8, 2024
2 parents d492568 + 3932a80 commit 4058117
Show file tree
Hide file tree
Showing 4 changed files with 563 additions and 26 deletions.
13 changes: 13 additions & 0 deletions a3p-integration/proposals/a:upgrade-next/post.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@ test(`Ensure Network Vat was installed`, async t => {
const incarnation = await getIncarnation('network');
t.is(incarnation, 0);
});

test(`Smart Wallet vat was upgraded`, async t => {
const incarnation = await getIncarnation('walletFactory');

t.is(incarnation, 2);
});

test(`Zoe vat was upgraded`, async t => {
const incarnation = await getIncarnation('zoe');

t.is(incarnation, 1);
});

26 changes: 0 additions & 26 deletions a3p-integration/proposals/a:upgrade-next/sanity.test.js

This file was deleted.

4 changes: 4 additions & 0 deletions golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,10 @@ func unreleasedUpgradeHandler(app *GaiaApp, targetUpgrade string) func(sdk.Conte
// Each CoreProposalStep runs sequentially, and can be constructed from
// one or more modules executing in parallel within the step.
CoreProposalSteps := []vm.CoreProposalStep{
// First, upgrade wallet factory
vm.CoreProposalStepForModules("@agoric/builders/scripts/smart-wallet/build-wallet-factory2-upgrade.js"),
// Then, upgrade Zoe and ZCF
vm.CoreProposalStepForModules("@agoric/builders/scripts/vats/replace-zoe.js"),
// vm.CoreProposalStepForModules("@agoric/builders/scripts/vats/init-network.js"),
}

Expand Down
Loading

0 comments on commit 4058117

Please sign in to comment.