Skip to content

Commit 098b450

Browse files
Fix failure handling logic and update wallet address in cleanup script (#85)
1 parent 3af7dbd commit 098b450

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

executors/src/eoa/worker/send.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,6 @@ impl<C: Chain> EoaExecutorWorker<C> {
251251
(_, Err(e)) => {
252252
// Track balance threshold issues
253253

254-
if should_break_on_failure {
255-
failure_occurred = true;
256-
}
257-
258254
if let EoaExecutorWorkerError::TransactionSimulationFailed {
259255
inner_error, ..
260256
} = &e
@@ -291,6 +287,8 @@ impl<C: Chain> EoaExecutorWorker<C> {
291287
);
292288
// Don't propagate the error, continue processing
293289
}
290+
} else if should_break_on_failure {
291+
failure_occurred = true;
294292
}
295293
}
296294
(true, Ok(_)) => continue,

scripts/cleanup-failed-pending-txs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (!process.env.REDIS_URL) {
1010
const CONFIG = {
1111
redisUrl: process.env.REDIS_URL,
1212
chainId: 8453,
13-
walletAddress: "0x80c08de1a05Df2bD633CF520754e40fdE3C794d3",
13+
walletAddress: "0xAACa1Ba9d2627cbc0739BA69890c30F95de046E4",
1414
fetchBatchSize: 1000, // batch size for fetching pending txs from sorted set
1515
deleteBatchSize: 100, // batch size for deletions
1616
dryRun: true, // Set to false to actually delete

0 commit comments

Comments
 (0)