Skip to content

Commit

Permalink
Remove hardcode in favor of max-gas-per-bundle (#265)
Browse files Browse the repository at this point in the history
* Remove hardcoded value

* Add changeset
  • Loading branch information
pavlovdog authored Sep 26, 2024
1 parent cba5c71 commit 9a7b8fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-carpets-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pimlico/alto": patch
---

Fixed bug where fixed 5m gas limit was used for bundle transaction instead of `max-gas-limit-per-bundle`
2 changes: 1 addition & 1 deletion src/executor/executorManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class ExecutorManager {
const opsToBundle: UserOperationInfo[][] = []

while (true) {
const ops = await this.mempool.process(5_000_000n, 1)
const ops = await this.mempool.process(this.maxGasLimitPerBundle, 1)
if (ops?.length > 0) {
opsToBundle.push(ops)
} else {
Expand Down

0 comments on commit 9a7b8fc

Please sign in to comment.