@moonpay/cli 0.6.15 → 0.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7381,19 +7381,9 @@ var tokenBridge = createTool(tokenBridgeSchema, async (params) => {
7381
7381
  if (!approvalResult.signature) {
7382
7382
  throw new Error(`Approval failed: ${approvalResult.message}`);
7383
7383
  }
7384
- process.stderr.write("Waiting for approval confirmation...\n");
7385
- for (let i = 0; i < 30; i++) {
7386
- await new Promise((r) => setTimeout(r, 2e3));
7387
- try {
7388
- const rebuilt = await callRemoteTool(baseUrl, "swaps_transaction_build", buildParams);
7389
- if (!rebuilt.requiresApproval) {
7390
- buildResult = rebuilt;
7391
- break;
7392
- }
7393
- } catch {
7394
- }
7395
- if (i === 29) throw new Error("Approval not confirmed after 60 seconds.");
7396
- }
7384
+ process.stderr.write("Approval sent. Waiting for confirmation...\n");
7385
+ await new Promise((r) => setTimeout(r, 5e3));
7386
+ buildResult = await callRemoteTool(baseUrl, "swaps_transaction_build", buildParams);
7397
7387
  }
7398
7388
  const txPayload = "base64" in buildResult.transaction ? buildResult.transaction.base64 : JSON.stringify(buildResult.transaction);
7399
7389
  const { transaction: signedTransaction } = await transactionSign.handler({
@@ -7863,4 +7853,4 @@ export {
7863
7853
  consentCheck,
7864
7854
  LOCAL_TOOLS
7865
7855
  };
7866
- //# sourceMappingURL=chunk-7KJP7F5Q.js.map
7856
+ //# sourceMappingURL=chunk-2GHQM7DN.js.map