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

Fix Hardhat compile error when fallback or receive functions are present #1060

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

ericglau
Copy link
Member

@ericglau ericglau commented Aug 12, 2024

When making modified source code for namespaced storage layout extraction, we previously deleted constructors and kept functions (but removed the function bodies and changed the return parameters) in case the function selectors were referenced in other parts of the source code.

For fallback and receive functions, these must have specific signatures and they do not have selectors. Therefore, we should delete them similar to constructors.

Fixes #1057

@ericglau ericglau requested a review from a team August 12, 2024 19:29
@ericglau ericglau requested a review from frangio August 12, 2024 20:31
@ericglau ericglau enabled auto-merge (squash) August 13, 2024 14:18
@ericglau ericglau merged commit defa881 into OpenZeppelin:master Aug 13, 2024
11 checks passed
@ericglau ericglau deleted the 1057 branch August 13, 2024 14:28
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.

Enabling plugin causes valid contract to stop compiling
2 participants