Skip to content

Commit 4ba1a41

Browse files
committed
fix: 5792 failure status codes
1 parent 0264966 commit 4ba1a41

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/wicked-islands-sell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Fixed `getCallsStatus` failure status codes.

src/experimental/eip5792/actions/getCallsStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function getCallsStatus<
7474
return ['pending', statusCode] as const
7575
if (statusCode >= 200 && statusCode < 300)
7676
return ['success', statusCode] as const
77-
if (statusCode >= 400 && statusCode < 700)
77+
if (statusCode >= 300 && statusCode < 700)
7878
return ['failure', statusCode] as const
7979
// @ts-expect-error: for backwards compatibility
8080
if (statusCode === 'CONFIRMED') return ['success', 200] as const

0 commit comments

Comments
 (0)