From 355a2e18e11eba3bf90fa7ef2cf990d39dd7f8f0 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Fri, 20 Dec 2024 13:19:39 -0800 Subject: [PATCH] chore: from review: add trace, minor cleanups --- .../builders/scripts/testing/recorded-retired-instances.js | 5 ++++- packages/inter-protocol/src/proposals/replaceElectorate.js | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/builders/scripts/testing/recorded-retired-instances.js b/packages/builders/scripts/testing/recorded-retired-instances.js index 4b0bdf17034..1f37e892a0d 100644 --- a/packages/builders/scripts/testing/recorded-retired-instances.js +++ b/packages/builders/scripts/testing/recorded-retired-instances.js @@ -33,14 +33,17 @@ export const testRecordedRetiredInstances = async ({ ); assert(committeeIDs); assert(committeeIDs.length === 1); + trace('found committeeIDs', committeeIDs); + const committeeInstance = retiredContractInstances.get(committeeIDs[0]); assert(await E(contractKits).get(committeeInstance)); - const charterIDs = Array.from(retiredContractInstances.keys()).filter(k => + const charterIDs = [...retiredContractInstances.keys()].filter(k => k.startsWith('econCommitteeCharter'), ); assert(charterIDs); assert(charterIDs.length === 1); + trace('found charterID', charterIDs); trace('done'); }; diff --git a/packages/inter-protocol/src/proposals/replaceElectorate.js b/packages/inter-protocol/src/proposals/replaceElectorate.js index 301566f66b9..efaa4ccd0b1 100644 --- a/packages/inter-protocol/src/proposals/replaceElectorate.js +++ b/packages/inter-protocol/src/proposals/replaceElectorate.js @@ -333,7 +333,7 @@ const startNewEconCharter = async ({ ]); const label = 'econCommitteeCharter'; - const previousCharterKit = { label, ...econCharterKit }; + const previousCharterKit = { ...econCharterKit, label }; const boardID = await E(board).getId(previousCharterKit.instance); const identifier = `${label}-${boardID}`; @@ -365,7 +365,7 @@ const startNewEconCharter = async ({ trace('Starting new EC Charter Instance'); - const terms = await harden({ + const terms = harden({ binaryVoteCounterInstallation: counterInstall, }); const startResult = await E(startUpgradable)({