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> {
210210 Ok ( tx. with_gas_price ( gas_price) )
211211 }
212212 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}" ) ,
216214 inner_error : legacy_error. to_engine_error ( & self . chain ) ,
217215 } ) ,
218216 }
@@ -326,6 +324,17 @@ impl<C: Chain> EoaExecutorWorker<C> {
326324 ) ,
327325 inner_error : e. to_engine_error ( & self . chain ) ,
328326 } ) ;
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+ } ) ;
329338 }
330339 }
331340
You can’t perform that action at this time.
0 commit comments