@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.js
CHANGED
|
@@ -2356,13 +2356,14 @@ async function getNearQuote(sourceChain, destChain, amount, destToken, sourceTok
|
|
|
2356
2356
|
referral: "1llet",
|
|
2357
2357
|
quoteWaitingTimeMs: 1e4
|
|
2358
2358
|
};
|
|
2359
|
+
console.log(`[NearService] Final QuoteRequest:`, JSON.stringify(quoteRequest, null, 2));
|
|
2359
2360
|
const quote = await oneClickSdkTypescript.OneClickService.getQuote(quoteRequest);
|
|
2360
|
-
if (!quote.quote?.depositAddress) {
|
|
2361
|
+
if (!options?.dry && !quote.quote?.depositAddress) {
|
|
2361
2362
|
throw new Error("No deposit address returned from 1-Click Quote");
|
|
2362
2363
|
}
|
|
2363
2364
|
return {
|
|
2364
2365
|
quote,
|
|
2365
|
-
depositAddress: quote.quote
|
|
2366
|
+
depositAddress: quote.quote?.depositAddress || "",
|
|
2366
2367
|
amountAtomicTotal: BigInt(amountAtomicTotal),
|
|
2367
2368
|
amountAtomicNet
|
|
2368
2369
|
};
|
|
@@ -2395,7 +2396,7 @@ async function getNearSimulation(sourceChain, destChain, amount, destToken, sour
|
|
|
2395
2396
|
const quoteResult = await getNearQuote(
|
|
2396
2397
|
sourceChain,
|
|
2397
2398
|
destChain,
|
|
2398
|
-
|
|
2399
|
+
amount,
|
|
2399
2400
|
destToken,
|
|
2400
2401
|
sourceToken,
|
|
2401
2402
|
recipient,
|