Skip to content

Commit 67c55dc

Browse files
authored
fix(builder): catch condition not met on arbitrum (#1158)
1 parent cdb92b3 commit 67c55dc

File tree

1 file changed

+4
-0
lines changed
  • crates/builder/src/sender

1 file changed

+4
-0
lines changed

crates/builder/src/sender/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ fn parse_known_call_execution_failed(message: &str, code: i64) -> Option<TxSende
257257
if lowercase_message.contains("insufficient funds") {
258258
return Some(TxSenderError::InsufficientFunds);
259259
}
260+
// Aribtrum sequencer
261+
if lowercase_message.contains("condition not met") {
262+
return Some(TxSenderError::ConditionNotMet);
263+
}
260264
// Check error codes before checking the message
261265
// The error code is -32003 or -32005 when condition is not met: https://eips.ethereum.org/EIPS/eip-7796
262266
if code == -32003 || code == -32005 {

0 commit comments

Comments
 (0)