File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,7 @@ impl<C: Chain> EoaExecutorWorker<C> {
210
210
Ok ( tx. with_gas_price ( gas_price) )
211
211
}
212
212
Err ( legacy_error) => Err ( EoaExecutorWorkerError :: RpcError {
213
- message : format ! (
214
- "Failed to get legacy gas price: {legacy_error}"
215
- ) ,
213
+ message : format ! ( "Failed to get legacy gas price: {legacy_error}" ) ,
216
214
inner_error : legacy_error. to_engine_error ( & self . chain ) ,
217
215
} ) ,
218
216
}
@@ -326,6 +324,17 @@ impl<C: Chain> EoaExecutorWorker<C> {
326
324
) ,
327
325
inner_error : e. to_engine_error ( & self . chain ) ,
328
326
} ) ;
327
+ } else if error_payload. message . to_lowercase ( ) . contains ( "revert" ) {
328
+ // This is a revert - the transaction is fundamentally broken
329
+ // This should fail the individual transaction, not the worker
330
+ // We need this fallback case because some providers don't return revert data
331
+ return Err ( EoaExecutorWorkerError :: TransactionSimulationFailed {
332
+ message : format ! (
333
+ "Transaction reverted during gas estimation: {}" ,
334
+ error_payload. message
335
+ ) ,
336
+ inner_error : e. to_engine_error ( & self . chain ) ,
337
+ } ) ;
329
338
}
330
339
}
331
340
You can’t perform that action at this time.
0 commit comments