From a5c2d54561c2547e05d6118d6f072882c5fc7a9d Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Fri, 6 Sep 2024 13:36:04 +0530 Subject: [PATCH 1/2] Fix ArbWASM precompile minInitGas() method return types --- src/precompiles/ArbWasm.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/precompiles/ArbWasm.sol b/src/precompiles/ArbWasm.sol index b690ed24..4906082b 100644 --- a/src/precompiles/ArbWasm.sol +++ b/src/precompiles/ArbWasm.sol @@ -82,7 +82,7 @@ interface ArbWasm { /// @notice Gets the minimum costs to invoke a program /// @return gas amount of gas in increments of 256 when not cached /// @return cached amount of gas in increments of 64 when cached - function minInitGas() external view returns (uint8 gas, uint8 cached); + function minInitGas() external view returns (uint64 gas, uint64 cached); /// @notice Gets the linear adjustment made to program init costs. /// @return percent the adjustment (100% = no adjustment). From 63a8d6024e94d825a68d561c5678471f3fe3a647 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Fri, 6 Sep 2024 09:55:54 -0500 Subject: [PATCH 2/2] Revert "Fix ArbWASM precompile minInitGas() method return types" --- src/precompiles/ArbWasm.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/precompiles/ArbWasm.sol b/src/precompiles/ArbWasm.sol index 4906082b..b690ed24 100644 --- a/src/precompiles/ArbWasm.sol +++ b/src/precompiles/ArbWasm.sol @@ -82,7 +82,7 @@ interface ArbWasm { /// @notice Gets the minimum costs to invoke a program /// @return gas amount of gas in increments of 256 when not cached /// @return cached amount of gas in increments of 64 when cached - function minInitGas() external view returns (uint64 gas, uint64 cached); + function minInitGas() external view returns (uint8 gas, uint8 cached); /// @notice Gets the linear adjustment made to program init costs. /// @return percent the adjustment (100% = no adjustment).