From 1e31d42396af2b231b915873e2085880560b396f Mon Sep 17 00:00:00 2001 From: Joshua Colvin Date: Mon, 28 Aug 2023 14:31:33 -0700 Subject: [PATCH] Add codehashversion precompile --- src/precompiles/ArbWasm.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/precompiles/ArbWasm.sol b/src/precompiles/ArbWasm.sol index 0059e99f..6ae4449e 100644 --- a/src/precompiles/ArbWasm.sol +++ b/src/precompiles/ArbWasm.sol @@ -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);