Skip to content

Commit 8d43747

Browse files
committed
dont clone
1 parent daed6b3 commit 8d43747

File tree

1 file changed

+10
-10
lines changed
  • executors/src/eip7702_executor

1 file changed

+10
-10
lines changed

executors/src/eip7702_executor/send.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ where
230230
let mapped_error = Eip7702SendError::DelegationCheckFailed {
231231
inner_error: e.clone(),
232232
};
233-
233+
234234
// Retry only if the error is retryable (network issues, 5xx, etc.)
235235
// Client errors (4xx) like "Invalid chain" or auth errors fail immediately
236236
if is_build_error_retryable(&e) {
@@ -289,23 +289,23 @@ where
289289
message: e.to_string(),
290290
})
291291
.map_err_fail()?;
292-
292+
293293
headers.insert(
294294
"x-executor-fleet-id",
295-
fleet_id.parse().map_err(|e| {
296-
Eip7702SendError::InvalidRpcCredentials {
295+
fleet_id
296+
.parse()
297+
.map_err(|e| Eip7702SendError::InvalidRpcCredentials {
297298
message: format!("Invalid fleet_id value: {e}"),
298-
}
299-
})
300-
.map_err_fail()?,
299+
})
300+
.map_err_fail()?,
301301
);
302-
303-
transactions
302+
303+
&transactions
304304
.account()
305305
.chain()
306306
.bundler_client_with_headers(headers)
307307
} else {
308-
transactions.account().chain().bundler_client().clone()
308+
transactions.account().chain().bundler_client()
309309
};
310310

311311
let transaction_id = bundler_client

0 commit comments

Comments
 (0)