@1llet.xyz/erc4337-gasless-sdk 0.4.44 → 0.4.46
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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -2356,6 +2356,7 @@ 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
2361
|
if (!options?.dry && !quote.quote?.depositAddress) {
|
|
2361
2362
|
throw new Error("No deposit address returned from 1-Click Quote");
|
|
@@ -2395,13 +2396,14 @@ 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,
|
|
2402
2403
|
sender,
|
|
2403
2404
|
{ dry: true }
|
|
2404
2405
|
);
|
|
2406
|
+
console.log(">>> [Bridge Quote] API Response:", JSON.stringify(quoteResult.quote, null, 2));
|
|
2405
2407
|
return {
|
|
2406
2408
|
success: true,
|
|
2407
2409
|
amountSent: amountNum,
|