viem 2.19.7 → 2.19.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -238,6 +238,7 @@ export async function getWithdrawalStatus<
238
238
  if (error.cause instanceof ContractFunctionRevertedError) {
239
239
  const errorMessage = error.cause.data?.args?.[0]
240
240
  if (
241
+ errorMessage === 'OptimismPortal: invalid game type' ||
241
242
  errorMessage === 'OptimismPortal: withdrawal has not been proven yet' ||
242
243
  errorMessage ===
243
244
  'OptimismPortal: withdrawal has not been proven by proof submitter address yet'
@@ -251,6 +252,9 @@ export async function getWithdrawalStatus<
251
252
  errorMessage === 'OptimismPortal: output proposal in air-gap'
252
253
  )
253
254
  return 'waiting-to-finalize'
255
+
256
+ if (error.cause.data?.errorName === 'InvalidGameType')
257
+ return 'ready-to-prove'
254
258
  }
255
259
  throw checkWithdrawalResult.reason
256
260
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.19.7",
4
+ "version": "2.19.8",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",