From 05d2cf72f67c324fc804bfbe2df758bff57df6e6 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Thu, 26 Sep 2024 17:49:48 +0500 Subject: [PATCH] chore: export and harden replaceCommitteeAndCharter --- .../inter-protocol/src/proposals/replaceCommitteeAndCharter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/inter-protocol/src/proposals/replaceCommitteeAndCharter.js b/packages/inter-protocol/src/proposals/replaceCommitteeAndCharter.js index 9b2b0cdc75b..683fc2aae61 100644 --- a/packages/inter-protocol/src/proposals/replaceCommitteeAndCharter.js +++ b/packages/inter-protocol/src/proposals/replaceCommitteeAndCharter.js @@ -337,7 +337,7 @@ const shutdown = async ({ trace('EC Charter shutdown successful'); }; -const replaceCommitteeAndCharter = async permittedPowers => { +export const replaceCommitteeAndCharter = async permittedPowers => { await shutdown(permittedPowers); await startNewEconomicCommittee(permittedPowers); await startNewEconCharter(permittedPowers); @@ -377,6 +377,7 @@ const replaceCommitteeAndCharter = async permittedPowers => { trace('Installed New Economic Committee'); }; +harden(replaceCommitteeAndCharter); export const getManifestForReplaceCommitteeAndCharter = async ({ economicCommitteeRef: _economicCommitteeRef, economicCharterRef: _economicCharterRef,