Skip to content

Commit 85b51d3

Browse files
committed
up
1 parent 7419a25 commit 85b51d3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/experimental/eip5792/actions/getCallsStatus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ export async function getCallsStatus<
7777
if (statusCode >= 400 && statusCode < 700)
7878
return ['failure', statusCode] as const
7979
// @ts-expect-error: for backwards compatibility
80-
if (statusCode === 'CONFIRMED') return ['success', 200] as const
80+
if (statusCode === 'CONFIRMED') return ['CONFIRMED' as never, 200] as const
8181
// @ts-expect-error: for backwards compatibility
82-
if (statusCode === 'PENDING') return ['pending', 100] as const
82+
if (statusCode === 'PENDING') return ['PENDING' as never, 100] as const
8383
return [undefined, statusCode]
8484
})()
8585
return {

src/experimental/eip5792/actions/waitForCallsStatus.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ export async function waitForCallsStatus<chain extends Chain | undefined>(
7676
const {
7777
id,
7878
pollingInterval = client.pollingInterval,
79-
status = ({ status, statusCode }) =>
80-
// @ts-expect-error: for backwards compatibility
81-
statusCode >= 200 || status === 'CONFIRMED',
79+
status = ({ statusCode }) => statusCode >= 200,
8280
timeout = 60_000,
8381
} = parameters
8482
const observerId = stringify(['waitForCallsStatus', client.uid, id])

0 commit comments

Comments
 (0)