@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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2333,12 +2333,12 @@ async function getNearQuote(sourceChain, destChain, amount, destToken, sourceTok
|
|
|
2333
2333
|
quoteWaitingTimeMs: 1e4
|
|
2334
2334
|
};
|
|
2335
2335
|
const quote = await OneClickService.getQuote(quoteRequest);
|
|
2336
|
-
if (!quote.quote?.depositAddress) {
|
|
2336
|
+
if (!options?.dry && !quote.quote?.depositAddress) {
|
|
2337
2337
|
throw new Error("No deposit address returned from 1-Click Quote");
|
|
2338
2338
|
}
|
|
2339
2339
|
return {
|
|
2340
2340
|
quote,
|
|
2341
|
-
depositAddress: quote.quote
|
|
2341
|
+
depositAddress: quote.quote?.depositAddress || "",
|
|
2342
2342
|
amountAtomicTotal: BigInt(amountAtomicTotal),
|
|
2343
2343
|
amountAtomicNet
|
|
2344
2344
|
};
|