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

Commit 3c6c046

Browse files
authored
Enable OP PVG calculation for OP Sepolia and Base Sepolia (#335)
1 parent 34cd6b4 commit 3c6c046

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

internal/config/constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ var (
1010
ArbitrumSepoliaChainID = big.NewInt(421614)
1111
OptimismChainID = big.NewInt(10)
1212
OptimismGoerliChainID = big.NewInt(420)
13+
OptimismSepoliaChainID = big.NewInt(11155420)
1314
BaseChainID = big.NewInt(8453)
1415
BaseGoerliChainID = big.NewInt(84531)
16+
BaseSepoliaChainID = big.NewInt(84532)
1517
)

internal/start/private.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,18 @@ func PrivateMode() {
8282
}
8383

8484
ov := gas.NewDefaultOverhead()
85-
if chain.Cmp(config.ArbitrumOneChainID) == 0 || chain.Cmp(config.ArbitrumGoerliChainID) == 0 ||
85+
if chain.Cmp(config.ArbitrumOneChainID) == 0 ||
86+
chain.Cmp(config.ArbitrumGoerliChainID) == 0 ||
8687
chain.Cmp(config.ArbitrumSepoliaChainID) == 0 {
8788
ov.SetCalcPreVerificationGasFunc(gas.CalcArbitrumPVGWithEthClient(rpc, conf.SupportedEntryPoints[0]))
8889
ov.SetPreVerificationGasBufferFactor(16)
8990
}
90-
if chain.Cmp(config.OptimismChainID) == 0 || chain.Cmp(config.OptimismGoerliChainID) == 0 ||
91-
chain.Cmp(config.BaseChainID) == 0 || chain.Cmp(config.BaseGoerliChainID) == 0 {
91+
if chain.Cmp(config.OptimismChainID) == 0 ||
92+
chain.Cmp(config.OptimismGoerliChainID) == 0 ||
93+
chain.Cmp(config.OptimismSepoliaChainID) == 0 ||
94+
chain.Cmp(config.BaseChainID) == 0 ||
95+
chain.Cmp(config.BaseGoerliChainID) == 0 ||
96+
chain.Cmp(config.BaseSepoliaChainID) == 0 {
9297
ov.SetCalcPreVerificationGasFunc(
9398
gas.CalcOptimismPVGWithEthClient(rpc, chain, conf.SupportedEntryPoints[0]),
9499
)

0 commit comments

Comments
 (0)