From 3ceb29800d96827cf34b489cd03a6020d7a31dff Mon Sep 17 00:00:00 2001 From: Daniel Savu <23065004+daniel-savu@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:28:53 +0000 Subject: [PATCH] fix(escalator): add known retryable error --- ethers-middleware/src/gas_escalator/mod.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ethers-middleware/src/gas_escalator/mod.rs b/ethers-middleware/src/gas_escalator/mod.rs index 9ca6d3531..722c996b2 100644 --- a/ethers-middleware/src/gas_escalator/mod.rs +++ b/ethers-middleware/src/gas_escalator/mod.rs @@ -270,8 +270,13 @@ pub struct EscalationTask { txs: ToEscalate, } -const RETRYABLE_ERRORS: [&str; 3] = - ["replacement transaction underpriced", "already known", "Fair pubdata price too high"]; +const RETRYABLE_ERRORS: [&str; 4] = [ + "replacement transaction underpriced", + "already known", + "Fair pubdata price too high", + // seen on Sei + "insufficient fee", +]; #[cfg(not(target_arch = "wasm32"))] impl EscalationTask {