Skip to content

Commit

Permalink
chore: use governedContractKits
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Oct 3, 2024
1 parent dc9a92c commit 5785221
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions packages/inter-protocol/src/proposals/replaceElectorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ export const replaceElectorate = async (permittedPowers, config) => {
},
);

const governedContractKitsMap =
await permittedPowers.consume.governedContractKits;
const psmKitMap = await permittedPowers.consume.psmKit;

const creatorFacets = [
E.get(permittedPowers.consume.reserveKit).governorCreatorFacet,
E.get(permittedPowers.consume.auctioneerKit).governorCreatorFacet,
E.get(permittedPowers.consume.vaultFactoryKit).governorCreatorFacet,
E.get(permittedPowers.consume.provisionPoolStartResult)
.governorCreatorFacet,
...[...governedContractKitsMap.values()].map(
governedContractKit => governedContractKit.governorCreatorFacet,
),
...[...psmKitMap.values()].map(psmKit => psmKit.psmGovernorCreatorFacet),
];

Expand Down Expand Up @@ -212,18 +212,15 @@ export const getManifestForReplaceElectorate = async (
manifest: {
[replaceElectorate.name]: {
consume: {
reserveKit: true,
auctioneerKit: true,
vaultFactoryKit: true,
psmKit: true,
provisionPoolStartResult: true,

board: true,
governedContractKits: true,
chainStorage: true,
diagnostics: true,
zoe: true,
highPrioritySendersManager: true,
namesByAddressAdmin: true,
// Rest of these are designed to be widely shared
board: true,
zoe: true,
},
produce: {
economicCommitteeKit: true,
Expand Down

0 comments on commit 5785221

Please sign in to comment.