Skip to content

Commit

Permalink
chore: save legacy kit before the auction upgrade. drop an await
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Dec 14, 2024
1 parent f29e000 commit bae91d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/inter-protocol/src/proposals/add-auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bae91d0

Please sign in to comment.