From c98ee1335efeca00594e7d1941ac0034207d0c4f Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 12 Nov 2024 13:44:43 -0500 Subject: [PATCH] style(a3p-integration): Use `concat` to group `agd` CLI arguments --- .../proposals/z:acceptance/test-lib/psm-lib.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/a3p-integration/proposals/z:acceptance/test-lib/psm-lib.js b/a3p-integration/proposals/z:acceptance/test-lib/psm-lib.js index 442f5232142..f97a89c7dd2 100644 --- a/a3p-integration/proposals/z:acceptance/test-lib/psm-lib.js +++ b/a3p-integration/proposals/z:acceptance/test-lib/psm-lib.js @@ -411,20 +411,14 @@ export const sendOfferAgd = async (address, offerPromise) => { const offer = await offerPromise; const networkConfig = await getNetworkConfig({ env: process.env, fetch }); const { chainName, rpcAddrs } = networkConfig; - const args = [ - `--node=${rpcAddrs[0]}`, - `--chain-id=${chainName}`, - `--keyring-backend=test`, - `--from=${address}`, - 'tx', - 'swingset', - 'wallet-action', - '--allow-spend', - offer, - '-bblock', + const args = [].concat( + [`--node=${rpcAddrs[0]}`, `--chain-id=${chainName}`], + [`--keyring-backend=test`, `--from=${address}`], + ['tx', 'swingset', 'wallet-action', '--allow-spend', offer], '--yes', + '-bblock', '-ojson', - ]; + ); const [settlement] = await Promise.allSettled([ execa('agd', args, { all: true }),