Remove ProtocolVersionAddress exception from check-rollup-config
Opened this issue · 0 comments
bitwiseguy commented
If we had a way to map L1ChainId to chain name within the superchain registry, we could add the following code to op-chain-ops
to populate the ProtocolVersionAddress
field when the rollup.json is first created:
protocolVersionAddress := common.Address{}
superchainTarget, recognizeL1 := superchain.L1ChainNames[d.L1ChainID]
if recognizeL1 {
superChain, ok := superchain.Superchains[superchainTarget]
if ok && superChain.Config.ProtocolVersionsAddr != nil { // Set optional protocol versions address
protocolVersionAddress = common.Address(*superChain.Config.ProtocolVersionsAddr)
}
}