From 8126fd8cdc6ef21fe142d84bde73f1968bae47a6 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Sat, 23 Apr 2022 22:05:04 -0500 Subject: [PATCH] chore(deploy-contracts): never mind previous design (SQUASHME) --- packages/run-protocol/scripts/deploy-contracts.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/run-protocol/scripts/deploy-contracts.js b/packages/run-protocol/scripts/deploy-contracts.js index 84ff1c969d94..449e8061b833 100644 --- a/packages/run-protocol/scripts/deploy-contracts.js +++ b/packages/run-protocol/scripts/deploy-contracts.js @@ -43,22 +43,10 @@ export default async (homeP, endowments) => { console.log('initially:', initial.payload.keys.length, 'entries'); // ISSUE: getCopyMapEntries of CopyMap loses K, V. - /** @type {Map} */ + /** @type {Map} */ const working = new Map(getCopyMapEntries(initial)); let added = 0; - // upgrade from previous design - if (working.size > 0 && !working.values().next().value.boardId) { - console.log('upgrading', working); - for (const [key, installation] of working.entries()) { - // eslint-disable-next-line no-await-in-loop - const boardId = await E(board).getId(installation); - // @ts-ignore - working.set(key, { boardId, installation }); - } - added += 1; // artificial - console.log('upgraded', working); - } /** @type {EndoZipBase64Bundle[]} */ const bundles = await Promise.all(