@1llet.xyz/erc4337-gasless-sdk 0.4.21 → 0.4.22

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.mjs CHANGED
@@ -1749,6 +1749,7 @@ var CCTPStrategy = class {
1749
1749
  };
1750
1750
  async function processCCTPSettlement(context, crossChainConfig) {
1751
1751
  const { paymentPayload, sourceChain, amount, recipient, facilitatorPrivateKey, depositTxHash } = context;
1752
+ console.log(`[SDK v0.4.22] Processing CCTP. DepositHash: ${depositTxHash} (${typeof depositTxHash})`);
1752
1753
  if (!facilitatorPrivateKey) {
1753
1754
  return {
1754
1755
  success: false,
@@ -1802,6 +1803,7 @@ async function processCCTPSettlement(context, crossChainConfig) {
1802
1803
  };
1803
1804
  }
1804
1805
  } else {
1806
+ console.log("[SDK v0.4.22] No deposit hash. Returning PENDING_USER_DEPOSIT.");
1805
1807
  return {
1806
1808
  success: true,
1807
1809
  data: {
@@ -1810,10 +1812,10 @@ async function processCCTPSettlement(context, crossChainConfig) {
1810
1812
  chainId: networkConfig.chainId
1811
1813
  },
1812
1814
  attestation: {
1813
- message: "PENDING_USER_DEPOSIT",
1815
+ message: "PENDING_USER_DEPOSIT_v22",
1814
1816
  attestation: "0x"
1815
1817
  },
1816
- transactionHash: "PENDING_USER_DEPOSIT"
1818
+ transactionHash: "PENDING_USER_DEPOSIT_v22"
1817
1819
  };
1818
1820
  }
1819
1821
  const transferHash = depositTxHash || "0x0000000000000000000000000000000000000000000000000000000000000000";