@medialane/sdk 0.166.0 → 0.167.0

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.
@@ -11239,7 +11239,8 @@ async function fundWithChainTransfer(api, wallet, options) {
11239
11239
  const pollMs = options.pollMs ?? 3e3;
11240
11240
  const maxPolls = options.maxPolls ?? 20;
11241
11241
  step("creating");
11242
- const { data: intent } = await api.createFunding({ method: "chain-transfer", params: { amountUsdc: options.amountUsdc } });
11242
+ const params = options.amount !== void 0 ? { amount: options.amount } : { amountUsdc: options.amountUsdc };
11243
+ const { data: intent } = await api.createFunding({ method: "chain-transfer", params });
11243
11244
  let txHash;
11244
11245
  let transferStarted = false;
11245
11246
  try {