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

Commit 34cd6b4

Browse files
authored
Support Arbitrum Sepolia PVG calculation (#329)
1 parent 9b403d6 commit 34cd6b4

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

internal/config/constants.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package config
33
import "math/big"
44

55
var (
6-
EthereumChainID = big.NewInt(1)
7-
GoerliChainID = big.NewInt(5)
8-
ArbitrumOneChainID = big.NewInt(42161)
9-
ArbitrumGoerliChainID = big.NewInt(421613)
10-
OptimismChainID = big.NewInt(10)
11-
OptimismGoerliChainID = big.NewInt(420)
12-
BaseChainID = big.NewInt(8453)
13-
BaseGoerliChainID = big.NewInt(84531)
6+
EthereumChainID = big.NewInt(1)
7+
GoerliChainID = big.NewInt(5)
8+
ArbitrumOneChainID = big.NewInt(42161)
9+
ArbitrumGoerliChainID = big.NewInt(421613)
10+
ArbitrumSepoliaChainID = big.NewInt(421614)
11+
OptimismChainID = big.NewInt(10)
12+
OptimismGoerliChainID = big.NewInt(420)
13+
BaseChainID = big.NewInt(8453)
14+
BaseGoerliChainID = big.NewInt(84531)
1415
)

internal/start/private.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ 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 || chain.Cmp(config.ArbitrumGoerliChainID) == 0 ||
86+
chain.Cmp(config.ArbitrumSepoliaChainID) == 0 {
8687
ov.SetCalcPreVerificationGasFunc(gas.CalcArbitrumPVGWithEthClient(rpc, conf.SupportedEntryPoints[0]))
8788
ov.SetPreVerificationGasBufferFactor(16)
8889
}

0 commit comments

Comments
 (0)