Skip to content

Commit 78ca518

Browse files
committed
batch-submitter: eip1559 logging
Log values related to eip1559 before sending a transaction. - `maxFeePerGas` - `maxPriorityFeePerGas` Also log the `gasLimit` in case transactions revert.
1 parent 3029c68 commit 78ca518

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/yellow-tomatoes-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@eth-optimism/batch-submitter': patch
3+
---
4+
5+
Add loglines for eip1559 related fields before sending a transaction

packages/batch-submitter/src/batch-submitter/batch-submitter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ export abstract class BatchSubmitter {
195195
beforeSendTransaction: (tx: PopulatedTransaction) => {
196196
this.logger.info(`Submitting ${txName} transaction`, {
197197
gasPrice: tx.gasPrice,
198+
maxFeePerGas: tx.maxFeePerGas,
199+
maxPriorityFeePerGas: tx.maxPriorityFeePerGas,
200+
gasLimit: tx.gasLimit,
198201
nonce: tx.nonce,
199202
contractAddr: this.chainContract.address,
200203
})

0 commit comments

Comments
 (0)