Skip to content

Commit aec59ed

Browse files
author
AztecBot
committed
Merge branch 'next' into merge-train/avm
2 parents a9cc4f4 + a76c3fc commit aec59ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

yarn-project/ethereum/src/l1_tx_utils/readonly_l1_tx_utils.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,17 @@ export class ReadOnlyL1TxUtils {
282282
..._blobInputs,
283283
maxFeePerBlobGas: gasPrice.maxFeePerBlobGas!,
284284
gas: LARGE_GAS_LIMIT,
285+
blockTag: 'latest',
285286
});
286287

287288
this.logger?.trace(`Estimated gas for blob tx: ${initialEstimate}`);
288289
} else {
289-
initialEstimate = await this.client.estimateGas({ account, ...request, gas: LARGE_GAS_LIMIT });
290+
initialEstimate = await this.client.estimateGas({
291+
account,
292+
...request,
293+
gas: LARGE_GAS_LIMIT,
294+
blockTag: 'latest',
295+
});
290296
this.logger?.trace(`Estimated gas for non-blob tx: ${initialEstimate}`);
291297
}
292298

0 commit comments

Comments
 (0)