@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.js CHANGED
@@ -1755,6 +1755,7 @@ var CCTPStrategy = class {
1755
1755
  };
1756
1756
  async function processCCTPSettlement(context, crossChainConfig) {
1757
1757
  const { paymentPayload, sourceChain, amount, recipient, facilitatorPrivateKey, depositTxHash } = context;
1758
+ console.log(`[SDK v0.4.22] Processing CCTP. DepositHash: ${depositTxHash} (${typeof depositTxHash})`);
1758
1759
  if (!facilitatorPrivateKey) {
1759
1760
  return {
1760
1761
  success: false,
@@ -1808,6 +1809,7 @@ async function processCCTPSettlement(context, crossChainConfig) {
1808
1809
  };
1809
1810
  }
1810
1811
  } else {
1812
+ console.log("[SDK v0.4.22] No deposit hash. Returning PENDING_USER_DEPOSIT.");
1811
1813
  return {
1812
1814
  success: true,
1813
1815
  data: {
@@ -1816,10 +1818,10 @@ async function processCCTPSettlement(context, crossChainConfig) {
1816
1818
  chainId: networkConfig.chainId
1817
1819
  },
1818
1820
  attestation: {
1819
- message: "PENDING_USER_DEPOSIT",
1821
+ message: "PENDING_USER_DEPOSIT_v22",
1820
1822
  attestation: "0x"
1821
1823
  },
1822
- transactionHash: "PENDING_USER_DEPOSIT"
1824
+ transactionHash: "PENDING_USER_DEPOSIT_v22"
1823
1825
  };
1824
1826
  }
1825
1827
  const transferHash = depositTxHash || "0x0000000000000000000000000000000000000000000000000000000000000000";