Skip to content

Commit

Permalink
style(a3p-integration): Use concat to group agd CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Nov 12, 2024
1 parent 236a61f commit c98ee13
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions a3p-integration/proposals/z:acceptance/test-lib/psm-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down

0 comments on commit c98ee13

Please sign in to comment.