mirror of
https://github.com/Instadapp/fluid-contracts-public.git
synced 2024-07-29 21:57:37 +00:00
d7a58e88ff
ARB: deploy protocols
12 lines
375 B
Solidity
12 lines
375 B
Solidity
// SPDX-License-Identifier: BUSL-1.1
|
|
pragma solidity 0.8.21;
|
|
|
|
/// @notice implements a method to read uint256 data from storage at a bytes32 storage slot key.
|
|
contract StorageRead {
|
|
function readFromStorage(bytes32 slot_) public view returns (uint256 result_) {
|
|
assembly {
|
|
result_ := sload(slot_) // read value from the storage slot
|
|
}
|
|
}
|
|
}
|