Skip to content

Commit

Permalink
Add chaintype.ChainZircuit to chaintypes with rollup support in L1 or…
Browse files Browse the repository at this point in the history
…acle (#15913)

* Add chaintype.ChainZircuit to chaintypes with rollup support in L1 oracle

* changeset

* sort alphabetically
  • Loading branch information
ogtownsend authored Jan 15, 2025
1 parent eb855ea commit d0a7df3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-beds-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#bugfix Add chaintype.ChainZircuit to chaintypes with rollup support in L1 oracle to prevent a nil L1 oracle being used for Zircuit's gas estimator
11 changes: 10 additions & 1 deletion core/chains/evm/gas/rollups/l1_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ const (
PollPeriod = 6 * time.Second
)

var supportedChainTypes = []chaintype.ChainType{chaintype.ChainArbitrum, chaintype.ChainOptimismBedrock, chaintype.ChainKroma, chaintype.ChainScroll, chaintype.ChainZkSync, chaintype.ChainMantle}
// Sort alphabetically
var supportedChainTypes = []chaintype.ChainType{
chaintype.ChainArbitrum,
chaintype.ChainKroma,
chaintype.ChainMantle,
chaintype.ChainOptimismBedrock,
chaintype.ChainScroll,
chaintype.ChainZircuit,
chaintype.ChainZkSync,
}

func IsRollupWithL1Support(chainType chaintype.ChainType) bool {
return slices.Contains(supportedChainTypes, chainType)
Expand Down

0 comments on commit d0a7df3

Please sign in to comment.