Skip to content

Commit

Permalink
return 1gwei if fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Dec 4, 2024
1 parent 456ac82 commit 07d779f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/handlers/gasPriceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ export class GasPriceManager {
} catch (e) {
this.logger.error("failed to get fallback maxPriorityFeePerGas")
sentry.captureException(e)
throw e
return {
maxPriorityFeePerGas: parseGwei("1"),
maxFeePerGas: parseGwei("1")
}
}
}

Expand All @@ -285,7 +288,10 @@ export class GasPriceManager {
} catch (e) {
this.logger.error("failed to get fallback maxFeePerGas")
sentry.captureException(e)
throw e
return {
maxPriorityFeePerGas: parseGwei("1"),
maxFeePerGas: parseGwei("1")
}
}
}

Expand Down

0 comments on commit 07d779f

Please sign in to comment.