Skip to content

Commit

Permalink
fix chainid check
Browse files Browse the repository at this point in the history
  • Loading branch information
n1punp committed Feb 14, 2024
1 parent cd35d69 commit 5574f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/AddressResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ abstract contract AddressResolver {
/// @param _addressManager Address of the AddressManager.
// solhint-disable-next-line func-name-mixedcase
function __AddressResolver_init(address _addressManager) internal virtual {
if (block.chainid >= type(uint64).max) {
if (block.chainid > type(uint64).max) {
revert RESOLVER_UNEXPECTED_CHAINID();
}
addressManager = _addressManager;
Expand Down

0 comments on commit 5574f77

Please sign in to comment.