From 05c83d9d4b7ea27acd5667ea16124698e34c9884 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Sun, 10 Mar 2024 18:03:36 -0500 Subject: [PATCH] WIP WIP --- contract/test/lib-gov-test/puppet-gov.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/contract/test/lib-gov-test/puppet-gov.js b/contract/test/lib-gov-test/puppet-gov.js index bf348418..0dfb3aa0 100644 --- a/contract/test/lib-gov-test/puppet-gov.js +++ b/contract/test/lib-gov-test/puppet-gov.js @@ -17,6 +17,15 @@ const assets = { ), }; +export const installCommitteeContract = async (zoe, produce, bundleCache) => { + const committeeBundle = await bundleCache.load( + assets.committeBundle, + 'committee', + ); + + produce.committee.resolve(E(zoe).install(committeeBundle)); +}; + /** * Install governance contracts, with a "puppet" governor for use in tests. * @@ -27,12 +36,7 @@ const assets = { * @typedef {Awaited>} BundleCache */ export const installPuppetGovernance = async (zoe, produce, bundleCache) => { - const committeeBundle = await bundleCache.load( - assets.committeBundle, - 'committee', - ); - - produce.committee.resolve(E(zoe).install(committeeBundle)); + await installCommitteeContract(zoe, produce, bundleCache); produce.contractGovernor.resolve( E(zoe).install(await bundleCache.load(assets.puppetContractGovernor)), );