Skip to content

Commit

Permalink
refactor: get auction instance from promise space after completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Aug 22, 2024
1 parent 7a08c6a commit 20db104
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/inter-protocol/src/proposals/upgrade-vaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ export const upgradeVaults = async (
installation: {
produce: { VaultFactory: produceVaultInstallation },
},
instance: {
consume: { auctioneer: auctioneerInstanceP },
},
// We want the auction instance after auctionsUpgradeComplete resolves
instance: { consume: consumeInstance },
},
{ options },
) => {
Expand Down Expand Up @@ -131,9 +130,10 @@ export const upgradeVaults = async (
E.get(reserveKit).creatorFacet,
).makeShortfallReportingInvitation();

// we want the auctioneer instance after auctionsUpgradeComplete settles
const [poserInvitation, auctioneerInstance] = await Promise.all([
E(electorateCreatorFacet).getPoserInvitation(),
auctioneerInstanceP,
E.get(consumeInstance).auctioneer,
]);

/** @type {import('../../src/vaultFactory/vaultFactory').VaultFactoryContract['privateArgs']} */
Expand Down Expand Up @@ -181,7 +181,7 @@ export const getManifestForUpgradeVaults = async (
installation: {
produce: { VaultFactory: true },
},
instance: { consume: { auctioneer: uV } },
instance: { consume: true },
},
},
options: { ...vaultUpgradeOptions },
Expand Down

0 comments on commit 20db104

Please sign in to comment.