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

Commit

Permalink
cleanup conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSolante committed Apr 8, 2024
1 parent 429a8d2 commit 04e99a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions internal/config/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ var (
LyraSepoliaChainID.Uint64(),
Ancient8SepoliaChainID.Uint64(),
)

ArbStackChains = mapset.NewSet(
ArbitrumOneChainID.Uint64(),
ArbitrumGoerliChainID.Uint64(),
ArbitrumSepoliaChainID.Uint64(),
)
)
4 changes: 1 addition & 3 deletions internal/start/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ func PrivateMode() {
}

ov := gas.NewDefaultOverhead()
if conf.IsArbStackNetwork || chain.Cmp(config.ArbitrumOneChainID) == 0 ||
chain.Cmp(config.ArbitrumGoerliChainID) == 0 ||
chain.Cmp(config.ArbitrumSepoliaChainID) == 0 {
if conf.IsArbStackNetwork || config.ArbStackChains.Contains(chain.Uint64()) {
ov.SetCalcPreVerificationGasFunc(gas.CalcArbitrumPVGWithEthClient(rpc, conf.SupportedEntryPoints[0]))
ov.SetPreVerificationGasBufferFactor(16)
}
Expand Down

0 comments on commit 04e99a5

Please sign in to comment.