From bae91d0d30ed675c1e667ffd06a1a56a99690194 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Fri, 13 Dec 2024 16:47:27 -0800 Subject: [PATCH] chore: save legacy kit before the auction upgrade. drop an await --- packages/inter-protocol/src/proposals/add-auction.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/inter-protocol/src/proposals/add-auction.js b/packages/inter-protocol/src/proposals/add-auction.js index 11c1439e3ac..b236a94a203 100644 --- a/packages/inter-protocol/src/proposals/add-auction.js +++ b/packages/inter-protocol/src/proposals/add-auction.js @@ -88,6 +88,10 @@ export const addAuction = async ( produceRetiredInstances, ); + const governedContractKits = await governedContractKitsP; + // @ts-expect-error The original auctioneerKit had everything it needs + governedContractKits.init(legacyKit.instance, legacyKit); + // save the auctioneer instance so we can manage it later const boardID = await E(board).getId(legacyKit.instance); const identifier = `auctioneer-${boardID}`; @@ -205,10 +209,6 @@ export const addAuction = async ( governedInstance, ); - const governedContractKits = await governedContractKitsP; - // @ts-expect-error The original auctioneerKit had everything it needs - await governedContractKits.init(legacyKit.instance, legacyKit); - governedContractKits.init(kit.instance, kit); auctionUpgradeNewInstance.resolve(governedInstance); auctionUpgradeNewGovCreator.resolve(kit.governorCreatorFacet);