Skip to content

Commit

Permalink
fix reorg protection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Aug 15, 2024
1 parent f91a18d commit 649cf45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type EthereumKeeperRegistry struct {
func (v *EthereumKeeperRegistry) ReorgProtectionEnabled() bool {
chainId := v.client.ChainID
// reorg protection is disabled in polygon zkEVM and Scroll bc currently there is no way to get the block hash onchain
return v.version >= ethereum.RegistryVersion_2_2 || (chainId != 1101 && chainId != 1442 && chainId != 2442 && chainId != 534352 && chainId != 534351)
return v.version < ethereum.RegistryVersion_2_2 || (chainId != 1101 && chainId != 1442 && chainId != 2442 && chainId != 534352 && chainId != 534351)
}

func (v *EthereumKeeperRegistry) ChainModuleAddress() common.Address {
Expand Down

0 comments on commit 649cf45

Please sign in to comment.