@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.mjs
CHANGED
|
@@ -1971,7 +1971,7 @@ async function executeCCTPBridge(sourceChain, amount, crossChainConfig, facilita
|
|
|
1971
1971
|
const amountBigInt = BigInt(Math.floor(parseFloat(amount) * 1e6));
|
|
1972
1972
|
const feeRaw = calculateFee();
|
|
1973
1973
|
const fee = BigInt(Math.floor(feeRaw * 1e6));
|
|
1974
|
-
const minRequired = fee
|
|
1974
|
+
const minRequired = fee;
|
|
1975
1975
|
if (amountBigInt <= minRequired) {
|
|
1976
1976
|
return {
|
|
1977
1977
|
success: false,
|
|
@@ -2027,8 +2027,8 @@ async function executeCCTPBridge(sourceChain, amount, crossChainConfig, facilita
|
|
|
2027
2027
|
abi: tokenMessengerAbi,
|
|
2028
2028
|
functionName: "depositForBurn",
|
|
2029
2029
|
args: [
|
|
2030
|
-
amountBigInt - fee
|
|
2031
|
-
// Deduct 0.02 USDC Fee
|
|
2030
|
+
amountBigInt - fee,
|
|
2031
|
+
// Deduct 0.02 USDC Fee
|
|
2032
2032
|
crossChainConfig.destinationDomain,
|
|
2033
2033
|
mintRecipient,
|
|
2034
2034
|
networkConfig.usdc,
|