@1llet.xyz/erc4337-gasless-sdk 0.4.23 → 0.4.24
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2050,7 +2050,9 @@ var NearStrategy = class {
|
|
|
2050
2050
|
transport: http4(networkConfig.rpcUrl)
|
|
2051
2051
|
});
|
|
2052
2052
|
try {
|
|
2053
|
+
console.log(`[NearStrategy] Waiting for receipt...`);
|
|
2053
2054
|
const receipt = await publicClient.waitForTransactionReceipt({ hash: depositTxHash });
|
|
2055
|
+
console.log(`[NearStrategy] Receipt found. Status: ${receipt.status}`);
|
|
2054
2056
|
if (receipt.status === "success") {
|
|
2055
2057
|
return {
|
|
2056
2058
|
success: true,
|
|
@@ -2062,9 +2064,13 @@ var NearStrategy = class {
|
|
|
2062
2064
|
completed: true
|
|
2063
2065
|
}
|
|
2064
2066
|
};
|
|
2067
|
+
} else {
|
|
2068
|
+
console.error(`[NearStrategy] Transaction failed. Status: ${receipt.status}`);
|
|
2069
|
+
return { success: false, errorReason: `Transaction Reverted on-chain (Status: ${receipt.status})` };
|
|
2065
2070
|
}
|
|
2066
2071
|
} catch (e) {
|
|
2067
|
-
|
|
2072
|
+
console.error(`[NearStrategy] Verification Error:`, e);
|
|
2073
|
+
return { success: false, errorReason: `Verification Error: ${e.message}` };
|
|
2068
2074
|
}
|
|
2069
2075
|
}
|
|
2070
2076
|
try {
|