File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/experimental/eip5792/actions Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ] )
You can’t perform that action at this time.
0 commit comments