File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " viem " : patch
3
+ ---
4
+
5
+ ** OP Stack:** Fixed ` Unproven ` case.
Original file line number Diff line number Diff line change @@ -284,14 +284,14 @@ export async function getWithdrawalStatus<
284
284
// All potential error causes listed here, can either be the error string or the error name
285
285
// if custom error types are returned.
286
286
const errorCauses = {
287
- 'waiting-to-prove' : [ 'Unproven' ] ,
288
287
'ready-to-prove' : [
289
288
'OptimismPortal: invalid game type' ,
290
289
'OptimismPortal: withdrawal has not been proven yet' ,
291
290
'OptimismPortal: withdrawal has not been proven by proof submitter address yet' ,
292
291
'OptimismPortal: dispute game created before respected game type was updated' ,
293
292
'InvalidGameType' ,
294
293
'LegacyGame' ,
294
+ 'Unproven' ,
295
295
] ,
296
296
'waiting-to-finalize' : [
297
297
'OptimismPortal: proven withdrawal has not matured yet' ,
@@ -306,10 +306,6 @@ export async function getWithdrawalStatus<
306
306
error . cause . data ?. errorName ,
307
307
error . cause . data ?. args ?. [ 0 ] as string ,
308
308
]
309
- if (
310
- errorCauses [ 'waiting-to-prove' ] . some ( ( cause ) => errors . includes ( cause ) )
311
- )
312
- return 'waiting-to-prove'
313
309
if ( errorCauses [ 'ready-to-prove' ] . some ( ( cause ) => errors . includes ( cause ) ) )
314
310
return 'ready-to-prove'
315
311
if (
You can’t perform that action at this time.
0 commit comments