diff --git a/.changeset/gorgeous-carpets-fold.md b/.changeset/gorgeous-carpets-fold.md new file mode 100644 index 00000000..efb12b75 --- /dev/null +++ b/.changeset/gorgeous-carpets-fold.md @@ -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` diff --git a/src/executor/executorManager.ts b/src/executor/executorManager.ts index c8d91ab2..ff61df89 100644 --- a/src/executor/executorManager.ts +++ b/src/executor/executorManager.ts @@ -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 {