Skip to content

Commit

Permalink
fix: peek at error correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBigBoss committed Jan 1, 2025
1 parent dce13f0 commit 9ae4952
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/bundler/src/modules/BundleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,11 @@ export class BundleManager {
try {
parsedError = this.entryPoint.interface.parseError((e.data?.data ?? e.data))
} catch (e1) {
if (e.error?.code === -32000) {
const msg: string = e.error.message ?? ''
if (msg.includes('transaction underpriced')) {
console.warn('Failed handleOps, but transaction underpriced', e)
// Increment failed attempts counter
this.transactionAttempts = Math.min(this.transactionAttempts + 1, this.maxPriorityFeeRetries)
return
}
if ((e as Error)?.message?.includes('replacement fee too low')) {
console.warn('Failed handleOps, but replacement fee too low', e)
// Increment failed attempts counter
this.transactionAttempts = Math.min(this.transactionAttempts + 1, this.maxPriorityFeeRetries)
return
}
this.checkFatal(e)
console.warn('Failed handleOps, but non-FailedOp error', e)
Expand Down

0 comments on commit 9ae4952

Please sign in to comment.