anymal-protocol 1.0.84 → 1.0.85
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 +8 -3
- package/dist/index.mjs +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1977,11 +1977,16 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
1977
1977
|
maxPriorityFeePerGas: (0, import_viem7.parseGwei)("0.001")
|
|
1978
1978
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1979
1979
|
});
|
|
1980
|
-
await bundlerClient.waitForUserOperationReceipt({
|
|
1981
|
-
|
|
1980
|
+
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1981
|
+
hash: userOpPartialPayHash
|
|
1982
|
+
});
|
|
1983
|
+
return { success: true, message: receipt.userOpHash };
|
|
1982
1984
|
} catch (error) {
|
|
1983
1985
|
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred.";
|
|
1984
|
-
return {
|
|
1986
|
+
return {
|
|
1987
|
+
success: false,
|
|
1988
|
+
message: `Error processing partial payment: ${errorMessage}`
|
|
1989
|
+
};
|
|
1985
1990
|
}
|
|
1986
1991
|
},
|
|
1987
1992
|
[]
|
package/dist/index.mjs
CHANGED
|
@@ -1919,11 +1919,16 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
1919
1919
|
maxPriorityFeePerGas: parseGwei7("0.001")
|
|
1920
1920
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1921
1921
|
});
|
|
1922
|
-
await bundlerClient.waitForUserOperationReceipt({
|
|
1923
|
-
|
|
1922
|
+
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1923
|
+
hash: userOpPartialPayHash
|
|
1924
|
+
});
|
|
1925
|
+
return { success: true, message: receipt.userOpHash };
|
|
1924
1926
|
} catch (error) {
|
|
1925
1927
|
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred.";
|
|
1926
|
-
return {
|
|
1928
|
+
return {
|
|
1929
|
+
success: false,
|
|
1930
|
+
message: `Error processing partial payment: ${errorMessage}`
|
|
1931
|
+
};
|
|
1927
1932
|
}
|
|
1928
1933
|
},
|
|
1929
1934
|
[]
|
package/package.json
CHANGED