Skip to content
New issue

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

feat: minimal delegation storage #1

Merged
merged 8 commits into from
Feb 20, 2025
Merged

feat: minimal delegation storage #1

merged 8 commits into from
Feb 20, 2025

Conversation

zhongeric
Copy link
Collaborator

No description provided.

bytes32 private constant MINIMAL_DELEGATION_STORAGE_LOCATION =
0x21f3d48e9724698d61a2dadd352c365013ee5d0f841f7fc54fb8a78301ee0c00;

function _getMinimalDelegationStorage() private pure returns (MinimalDelegationStorage storage $) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we put this in a library?

so like the syntax here would be keyStorage.get()? i remember sometimes this is tricky but worth a shot

bytes32 private constant MINIMAL_DELEGATION_STORAGE_LOCATION =
0x21f3d48e9724698d61a2dadd352c365013ee5d0f841f7fc54fb8a78301ee0c00;

function _getMinimalDelegationStorage() private pure returns (MinimalDelegationStorage storage $) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also where did the $ notation come from is that standard? i find it hard to read lol

@zhongeric zhongeric merged commit ce4ff83 into main Feb 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants