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

Commit e3a0027

Browse files
authored
Set PVG calculation for Base mainnet (#235)
1 parent 176c97e commit e3a0027

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/config/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ var (
99
ArbitrumGoerliChainID = big.NewInt(421613)
1010
OptimismChainID = big.NewInt(10)
1111
OptimismGoerliChainID = big.NewInt(420)
12+
BaseChainID = big.NewInt(8453)
1213
BaseGoerliChainID = big.NewInt(84531)
1314
)

internal/start/private.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func PrivateMode() {
8686
ov.SetPreVerificationGasBufferFactor(16)
8787
}
8888
if chain.Cmp(config.OptimismChainID) == 0 || chain.Cmp(config.OptimismGoerliChainID) == 0 ||
89-
chain.Cmp(config.BaseGoerliChainID) == 0 {
89+
chain.Cmp(config.BaseChainID) == 0 || chain.Cmp(config.BaseGoerliChainID) == 0 {
9090
ov.SetCalcPreVerificationGasFunc(
9191
gas.CalcOptimismPVGWithEthClient(rpc, chain, conf.SupportedEntryPoints[0]),
9292
)

0 commit comments

Comments
 (0)