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 }),