@compass-labs/widgets 0.1.45 → 0.1.47

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.
@@ -315,7 +315,7 @@ var CompassCoreService = class {
315
315
  }
316
316
  }
317
317
  async transferPrepare(body) {
318
- const { owner, chain = "base", token, amount, action, product } = body;
318
+ const { owner, chain = "base", token, amount, action, product, recipient } = body;
319
319
  const { gasSponsorPrivateKey } = this.config;
320
320
  if (!owner || !token || !amount || !action) {
321
321
  throw new CompassServiceError("Missing required parameters", 400);
@@ -344,7 +344,8 @@ var CompassCoreService = class {
344
344
  amount,
345
345
  action,
346
346
  gasSponsorship: true,
347
- ...spender && { spender }
347
+ ...spender && { spender },
348
+ ...recipient && action === "WITHDRAW" && { recipient }
348
349
  });
349
350
  }
350
351
  const eip712 = response.eip712;