Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 4a71814

Browse files
authored
misc: add Lyra chains to use OP preverificationGas calculation (#358)
1 parent 8a47bdb commit 4a71814

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

internal/config/constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ var (
1515
BaseChainID = big.NewInt(8453)
1616
BaseGoerliChainID = big.NewInt(84531)
1717
BaseSepoliaChainID = big.NewInt(84532)
18+
LyraChainID = big.NewInt(957)
19+
LyraSepoliaChainID = big.NewInt(902)
1820
)

internal/start/private.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ func PrivateMode() {
9494
chain.Cmp(config.OptimismSepoliaChainID) == 0 ||
9595
chain.Cmp(config.BaseChainID) == 0 ||
9696
chain.Cmp(config.BaseGoerliChainID) == 0 ||
97-
chain.Cmp(config.BaseSepoliaChainID) == 0 {
97+
chain.Cmp(config.BaseSepoliaChainID) == 0 ||
98+
chain.Cmp(config.LyraChainID) == 0 ||
99+
chain.Cmp(config.LyraSepoliaChainID) == 0 {
98100
ov.SetCalcPreVerificationGasFunc(
99101
gas.CalcOptimismPVGWithEthClient(rpc, chain, conf.SupportedEntryPoints[0]),
100102
)

0 commit comments

Comments
 (0)