We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove _gaps in favor of namespaced storage, following https://eips.ethereum.org/EIPS/eip-7201
_gaps
contract AbcUpgradeable { // keccak256(keccak256("storyprotocol.storage.Abc") - 1) = 0x123... bytes32 private AbcStorageLocation = 0x123...; /// @custom:oz-unsafe-allow immutable uint immutable z; /// @custom:storage-location ercXXXX:openzeppelin.storage.Abc struct AbcStorage { uint x; uint y; } function _getAbcStorage() private pure returns (AbcStorage storage $) { assembly { $.slot := AbcStorageLocation } } function _foo() internal view { AbcStorage storage $ = _getAbcStorage(); $.x.sendValue($.y); } }
The text was updated successfully, but these errors were encountered:
Ramarti
Successfully merging a pull request may close this issue.
Remove
_gaps
in favor of namespaced storage, following https://eips.ethereum.org/EIPS/eip-7201The text was updated successfully, but these errors were encountered: