Skip to content

Commit

Permalink
extsload interface as view function (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilz authored Jun 8, 2023
1 parent ebff901 commit b4dec0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/interfaces/IPoolManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b4dec0b

Please sign in to comment.