@1llet.xyz/erc4337-gasless-sdk 0.4.43 → 0.4.44

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.
package/dist/index.js CHANGED
@@ -2357,12 +2357,12 @@ async function getNearQuote(sourceChain, destChain, amount, destToken, sourceTok
2357
2357
  quoteWaitingTimeMs: 1e4
2358
2358
  };
2359
2359
  const quote = await oneClickSdkTypescript.OneClickService.getQuote(quoteRequest);
2360
- if (!quote.quote?.depositAddress) {
2360
+ if (!options?.dry && !quote.quote?.depositAddress) {
2361
2361
  throw new Error("No deposit address returned from 1-Click Quote");
2362
2362
  }
2363
2363
  return {
2364
2364
  quote,
2365
- depositAddress: quote.quote.depositAddress,
2365
+ depositAddress: quote.quote?.depositAddress || "",
2366
2366
  amountAtomicTotal: BigInt(amountAtomicTotal),
2367
2367
  amountAtomicNet
2368
2368
  };