Skip to content

Commit 2066a8b

Browse files
committed
retry if fail to fetch delegation target address
1 parent 80b47ef commit 2066a8b

File tree

1 file changed

+4
-1
lines changed
  • executors/src/eip7702_executor

1 file changed

+4
-1
lines changed

executors/src/eip7702_executor/send.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ where
227227
.get_delegation_contract(transactions.account().chain())
228228
.await
229229
.map_err(|e| Eip7702SendError::DelegationCheckFailed { inner_error: e })
230-
.map_err_fail()?;
230+
.map_err_nack(
231+
Some(Duration::from_secs(2)),
232+
twmq::job::RequeuePosition::Last,
233+
)?;
231234

232235
let transactions = transactions
233236
.add_authorization_if_needed(

0 commit comments

Comments
 (0)