Skip to content

Commit

Permalink
chore: from review: add trace, minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Dec 20, 2024
1 parent c2c9be3 commit 355a2e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};
Expand Down
4 changes: 2 additions & 2 deletions packages/inter-protocol/src/proposals/replaceElectorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -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)({
Expand Down

0 comments on commit 355a2e1

Please sign in to comment.