@1llet.xyz/erc4337-gasless-sdk 0.4.43 → 0.4.45
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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2332,13 +2332,14 @@ async function getNearQuote(sourceChain, destChain, amount, destToken, sourceTok
|
|
|
2332
2332
|
referral: "1llet",
|
|
2333
2333
|
quoteWaitingTimeMs: 1e4
|
|
2334
2334
|
};
|
|
2335
|
+
console.log(`[NearService] Final QuoteRequest:`, JSON.stringify(quoteRequest, null, 2));
|
|
2335
2336
|
const quote = await OneClickService.getQuote(quoteRequest);
|
|
2336
|
-
if (!quote.quote?.depositAddress) {
|
|
2337
|
+
if (!options?.dry && !quote.quote?.depositAddress) {
|
|
2337
2338
|
throw new Error("No deposit address returned from 1-Click Quote");
|
|
2338
2339
|
}
|
|
2339
2340
|
return {
|
|
2340
2341
|
quote,
|
|
2341
|
-
depositAddress: quote.quote
|
|
2342
|
+
depositAddress: quote.quote?.depositAddress || "",
|
|
2342
2343
|
amountAtomicTotal: BigInt(amountAtomicTotal),
|
|
2343
2344
|
amountAtomicNet
|
|
2344
2345
|
};
|
|
@@ -2371,7 +2372,7 @@ async function getNearSimulation(sourceChain, destChain, amount, destToken, sour
|
|
|
2371
2372
|
const quoteResult = await getNearQuote(
|
|
2372
2373
|
sourceChain,
|
|
2373
2374
|
destChain,
|
|
2374
|
-
|
|
2375
|
+
amount,
|
|
2375
2376
|
destToken,
|
|
2376
2377
|
sourceToken,
|
|
2377
2378
|
recipient,
|