Skip to content

Commit

Permalink
fixup! chore: changes to incorporate governedContractKits
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Oct 2, 2024
1 parent 8a1f820 commit 0fba11e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/inter-protocol/src/proposals/replaceElectorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ const addGovernorsToEconCharter = async (
{ consume: { psmKit, governedContractKits } },
{ options: { econCharterKit } },
) => {
const { creatorFacet } = E.get(econCharterKit);
const { creatorFacet: ecCreatorFacet } = E.get(econCharterKit);

const psmKitMap = await psmKit;

for (const { psm, psmGovernorCreatorFacet, label } of psmKitMap.values()) {
E(creatorFacet).addInstance(psm, psmGovernorCreatorFacet, label);
E(ecCreatorFacet).addInstance(psm, psmGovernorCreatorFacet, label);
}

const governedContractKitMap = await governedContractKits;
Expand All @@ -216,7 +216,7 @@ const addGovernorsToEconCharter = async (
governorCreatorFacet,
label,
} of governedContractKitMap.values()) {
E(creatorFacet).addInstance(instance, governorCreatorFacet, label);
E(ecCreatorFacet).addInstance(instance, governorCreatorFacet, label);
}
};

Expand All @@ -238,8 +238,6 @@ export const replaceElectorate = async (permittedPowers, config) => {
await permittedPowers.consume.governedContractKits;
const psmKitMap = await permittedPowers.consume.psmKit;

console.log('RABI', [...governedContractKitsMap.values()]);

const creatorFacets = [
...[...governedContractKitsMap.values()].map(
governedContractKit => governedContractKit.governorCreatorFacet,
Expand Down

0 comments on commit 0fba11e

Please sign in to comment.