Skip to content

Commit 2550695

Browse files
committed
Fix option.
1 parent e6e7096 commit 2550695

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export async function createCLI() {
223223
console.log(JSON.stringify(initResp, null, 2));
224224
const amount = await unitsToAmount(signer, initResp.payment.token, initResp.payment.amount.toString());
225225

226-
const proceed = options.yes;
226+
const proceed = options.accept;
227227
if (!proceed) {
228228
const rl = createInterface({ input, output });
229229
const confirmation = await rl.question(`\nProceed with payment for starting compute job at price ${amount} in tokens from address ${initResp.payment.token}? (y/n): `);

test/paidComputeFlow.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe("Ocean CLI Paid Compute", function() {
173173
}
174174
]
175175
const paymentToken = getAddresses().Ocean
176-
const output = await runCommand(`npm run cli startCompute ${computeDatasetDid} ${jsAlgoDid} ${computeEnvId} 900 ${paymentToken} '${JSON.stringify(resources)}' --yes`);
176+
const output = await runCommand(`npm run cli startCompute ${computeDatasetDid} ${jsAlgoDid} ${computeEnvId} 900 ${paymentToken} '${JSON.stringify(resources)}' --accept true`);
177177
const jobIdMatch = output.match(/JobID:\s*([^\s]+)/);
178178
const agreementIdMatch = output.match(/Agreement ID:\s*([^\s]+)/);
179179

0 commit comments

Comments
 (0)