@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.js
CHANGED
|
@@ -2056,7 +2056,9 @@ var NearStrategy = class {
|
|
|
2056
2056
|
transport: http4(networkConfig.rpcUrl)
|
|
2057
2057
|
});
|
|
2058
2058
|
try {
|
|
2059
|
+
console.log(`[NearStrategy] Waiting for receipt...`);
|
|
2059
2060
|
const receipt = await publicClient.waitForTransactionReceipt({ hash: depositTxHash });
|
|
2061
|
+
console.log(`[NearStrategy] Receipt found. Status: ${receipt.status}`);
|
|
2060
2062
|
if (receipt.status === "success") {
|
|
2061
2063
|
return {
|
|
2062
2064
|
success: true,
|
|
@@ -2068,9 +2070,13 @@ var NearStrategy = class {
|
|
|
2068
2070
|
completed: true
|
|
2069
2071
|
}
|
|
2070
2072
|
};
|
|
2073
|
+
} else {
|
|
2074
|
+
console.error(`[NearStrategy] Transaction failed. Status: ${receipt.status}`);
|
|
2075
|
+
return { success: false, errorReason: `Transaction Reverted on-chain (Status: ${receipt.status})` };
|
|
2071
2076
|
}
|
|
2072
2077
|
} catch (e) {
|
|
2073
|
-
|
|
2078
|
+
console.error(`[NearStrategy] Verification Error:`, e);
|
|
2079
|
+
return { success: false, errorReason: `Verification Error: ${e.message}` };
|
|
2074
2080
|
}
|
|
2075
2081
|
}
|
|
2076
2082
|
try {
|