@1llet.xyz/erc4337-gasless-sdk 0.4.49 → 0.4.50
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1995,7 +1995,7 @@ async function executeCCTPBridge(sourceChain, amount, crossChainConfig, facilita
|
|
|
1995
1995
|
const amountBigInt = BigInt(Math.floor(parseFloat(amount) * 1e6));
|
|
1996
1996
|
const feeRaw = calculateFee();
|
|
1997
1997
|
const fee = BigInt(Math.floor(feeRaw * 1e6));
|
|
1998
|
-
const minRequired = fee
|
|
1998
|
+
const minRequired = fee;
|
|
1999
1999
|
if (amountBigInt <= minRequired) {
|
|
2000
2000
|
return {
|
|
2001
2001
|
success: false,
|
|
@@ -2051,8 +2051,8 @@ async function executeCCTPBridge(sourceChain, amount, crossChainConfig, facilita
|
|
|
2051
2051
|
abi: tokenMessengerAbi,
|
|
2052
2052
|
functionName: "depositForBurn",
|
|
2053
2053
|
args: [
|
|
2054
|
-
amountBigInt - fee
|
|
2055
|
-
// Deduct 0.02 USDC Fee
|
|
2054
|
+
amountBigInt - fee,
|
|
2055
|
+
// Deduct 0.02 USDC Fee
|
|
2056
2056
|
crossChainConfig.destinationDomain,
|
|
2057
2057
|
mintRecipient,
|
|
2058
2058
|
networkConfig.usdc,
|