Skip to content

Commit

Permalink
docs: explain arbOSVersion offset (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth authored Sep 12, 2024
1 parent 31c0768 commit 2376ee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/precompiles/ArbSys.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ interface ArbSys {
function arbChainID() external view returns (uint256);

/**
* @notice Get internal version number identifying an ArbOS build
* @notice Get internal version number identifying an ArbOS build, this is `55 + nitroArbOS version number`
* e.g. on ArbOS 31 this would return 86. This is the only function that have the 55 offset.
* @return version number as int
*/
function arbOSVersion() external view returns (uint256);
Expand Down

0 comments on commit 2376ee7

Please sign in to comment.