We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0264966 commit 4ba1a41Copy full SHA for 4ba1a41
.changeset/wicked-islands-sell.md
@@ -0,0 +1,5 @@
1
+---
2
+"viem": patch
3
4
+
5
+Fixed `getCallsStatus` failure status codes.
src/experimental/eip5792/actions/getCallsStatus.ts
@@ -74,7 +74,7 @@ export async function getCallsStatus<
74
return ['pending', statusCode] as const
75
if (statusCode >= 200 && statusCode < 300)
76
return ['success', statusCode] as const
77
- if (statusCode >= 400 && statusCode < 700)
+ if (statusCode >= 300 && statusCode < 700)
78
return ['failure', statusCode] as const
79
// @ts-expect-error: for backwards compatibility
80
if (statusCode === 'CONFIRMED') return ['success', 200] as const
0 commit comments