@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.
@@ -304,7 +304,7 @@ var CompassCoreService = class {
304
304
  }
305
305
  }
306
306
  async transferPrepare(body) {
307
- const { owner, chain = "base", token, amount, action, product } = body;
307
+ const { owner, chain = "base", token, amount, action, product, recipient } = body;
308
308
  const { gasSponsorPrivateKey } = this.config;
309
309
  if (!owner || !token || !amount || !action) {
310
310
  throw new CompassServiceError("Missing required parameters", 400);
@@ -333,7 +333,8 @@ var CompassCoreService = class {
333
333
  amount,
334
334
  action,
335
335
  gasSponsorship: true,
336
- ...spender && { spender }
336
+ ...spender && { spender },
337
+ ...recipient && action === "WITHDRAW" && { recipient }
337
338
  });
338
339
  }
339
340
  const eip712 = response.eip712;