Skip to content

Commit

Permalink
Merge pull request #17 from OffchainLabs/codehashVersion
Browse files Browse the repository at this point in the history
Add codehashversion precompile
  • Loading branch information
rachel-bousfield authored Aug 28, 2023
2 parents 43e4c23 + 4986bcf commit 41f7392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/precompiles/ArbWasm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ interface ArbWasm {
// @return version the stylus version
function stylusVersion() external view returns (uint16 version);

// @notice gets the stylus version the program with codehash was most recently compiled against.
// @return version the program version (0 for EVM contracts)
function codehashVersion(bytes32 codehash) external view returns (uint16 version);

// @notice gets the stylus version the program was most recently compiled against.
// @return version the program version (0 for EVM contracts)
function programVersion(address program) external view returns (uint16 version);
Expand Down

0 comments on commit 41f7392

Please sign in to comment.