Skip to content

Commit

Permalink
fix(core): Remove gas price override on Gnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
RPate97 committed Mar 18, 2024
1 parent 2a17681 commit 643bcb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/slow-rings-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sphinx-labs/core': patch
'@sphinx-labs/plugins': patch
---

Remove gas limit override on Gnosis
5 changes: 0 additions & 5 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,6 @@ export const getGasPriceOverrides = async (
// On OKC, override nothing b/c it's unnecessary
case 66:
return overridden
// On Gnosis, set the gas limit artificially high (since ethers does not seem to always estimate it proplerly especially for contract deployments)
case 100:
case 10200:
overridden.gasLimit = (block.gasLimit / BigInt(4)) * BigInt(3)
return overridden
// Default to overriding with maxFeePerGas and maxPriorityFeePerGas
default:
if (maxFeePerGas !== null && maxPriorityFeePerGas !== null) {
Expand Down

0 comments on commit 643bcb4

Please sign in to comment.