Created
April 3, 2023 05:08
-
-
Save KolevDarko/84af1aafb2d6c8ac55524d4ba2274028 to your computer and use it in GitHub Desktop.
Fixed array storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function viewFixedArray(uint256 index) external view returns (uint256 ret) { | |
assembly { | |
ret := sload(add(fixedArray.slot, index)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment