From b4dec0b32ea69e8f097492b7284a619e7f0a296f Mon Sep 17 00:00:00 2001 From: Emily Williams Date: Thu, 8 Jun 2023 19:53:42 -0400 Subject: [PATCH] extsload interface as view function (#201) --- contracts/interfaces/IPoolManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/interfaces/IPoolManager.sol b/contracts/interfaces/IPoolManager.sol index 1d92a26ca..55380f017 100644 --- a/contracts/interfaces/IPoolManager.sol +++ b/contracts/interfaces/IPoolManager.sol @@ -182,11 +182,11 @@ interface IPoolManager is IERC1155 { /// @notice Called by external contracts to access granular pool state /// @param slot Key of slot to sload /// @return value The value of the slot as bytes32 - function extsload(bytes32 slot) external returns (bytes32 value); + function extsload(bytes32 slot) external view returns (bytes32 value); /// @notice Called by external contracts to access granular pool state /// @param slot Key of slot to start sloading from /// @param nSlots Number of slots to load into return value /// @return value The value of the sload-ed slots concatentated as dynamic bytes - function extsload(bytes32 slot, uint256 nSlots) external returns (bytes memory value); + function extsload(bytes32 slot, uint256 nSlots) external view returns (bytes memory value); }