Skip to content

Commit

Permalink
fix another chainid check
Browse files Browse the repository at this point in the history
  • Loading branch information
n1punp committed Feb 14, 2024
1 parent 5574f77 commit ccdec22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L2/TaikoL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ contract TaikoL2 is CrossChainOwned, ICrossChainSync {
{
__CrossChainOwned_init(_addressManager, _l1ChainId);

if (block.chainid <= 1 || block.chainid >= type(uint64).max) {
if (block.chainid <= 1 || block.chainid > type(uint64).max) {
revert L2_INVALID_CHAIN_ID();
}

Expand Down

0 comments on commit ccdec22

Please sign in to comment.