Skip to content

Commit

Permalink
Merge pull request #5 from pcaversaccio/patch-1
Browse files Browse the repository at this point in the history
Add comment on `MAX_SYSTEM_CONTRACT_ADDRESS` choice
  • Loading branch information
popzxc authored Apr 21, 2023
2 parents 857da71 + e73b7b5 commit 4e0487b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import "./BootloaderUtilities.sol";
uint160 constant SYSTEM_CONTRACTS_OFFSET = 0x8000; // 2^15

/// @dev All the system contracts must be located in the kernel space,
/// i.e. their addresses must be below 2^16.
/// i.e. their addresses must be below 2^16. The motivation behind this
/// choice is EIP-1352: https://eips.ethereum.org/EIPS/eip-1352.
uint160 constant MAX_SYSTEM_CONTRACT_ADDRESS = 0xffff; // 2^16 - 1

address constant ECRECOVER_SYSTEM_CONTRACT = address(0x01);
Expand Down

0 comments on commit 4e0487b

Please sign in to comment.