Skip to content

Commit 4b6af50

Browse files
committed
Linea gas overrides
1 parent dcd5e90 commit 4b6af50

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/timelock/operations.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ func (tw *Worker) executeCallSchedule(ctx context.Context, c *contracts.RBACTime
8282
txOpts.GasPrice = big.NewInt(1000000000) // gasPrice set to 1 gwei
8383
}
8484

85+
if chainID.Cmp(new(big.Int).SetUint64(chainselectors.ETHEREUM_MAINNET_LINEA_1.EvmChainID)) == 0 {
86+
tw.logger.Infof("Linea chain detected")
87+
txOpts.GasFeeCap = big.NewInt(20000000000) // gasFeeCap set to 20 gwei
88+
txOpts.GasTipCap = big.NewInt(20000000000) // gasTipCap set to 20 gwei
89+
}
90+
8591
tw.logger.Infof("Calling execute Batch...")
8692
// Execute the tx's with all the computed calls.
8793
// Predecessor and salt are the same for all the tx's.

0 commit comments

Comments
 (0)