From e98b136dbc36c0799472f43bde991f93962497f6 Mon Sep 17 00:00:00 2001 From: Jorge-Lopes Date: Mon, 9 Dec 2024 11:02:46 +0000 Subject: [PATCH] chore(provisionPool): simplify defining of governedParamOverrides --- .../src/proposals/upgrade-provisionPool-proposal.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/vats/src/proposals/upgrade-provisionPool-proposal.js b/packages/vats/src/proposals/upgrade-provisionPool-proposal.js index 264b57fa51f..c2d8e7c02b9 100644 --- a/packages/vats/src/proposals/upgrade-provisionPool-proposal.js +++ b/packages/vats/src/proposals/upgrade-provisionPool-proposal.js @@ -60,15 +60,10 @@ export const upgradeProvisionPool = async ( E(electorateCreatorFacet).getPoserInvitation(), ]); - const readCurrentGovernedParams = async () => { - await null; - - const params = await E(ppPublicFacet).getGovernedParams(); - return harden({ - PerAccountInitialAmount: params.PerAccountInitialAmount.value, - }); - }; - const governedParamOverrides = await readCurrentGovernedParams(); + const params = await E(ppPublicFacet).getGovernedParams(); + const governedParamOverrides = harden({ + PerAccountInitialAmount: params.PerAccountInitialAmount.value, + }); trace('governedParamOverrides: ', { governedParamOverrides }); const newPrivateArgs = harden({