Skip to content

Conversation

@Philogy
Copy link
Contributor

@Philogy Philogy commented Feb 2, 2025

No description provided.

Copy link

@robertleifke robertleifke left a comment

Choose a reason for hiding this comment

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

Left a comment about the RETURNDATASIZE being zero after a DELEGATECALL. Let me know if this a non-issue, otherwise looks good to me!

RETURNDATASIZE,
MSTORE,
MSIZE,
RETURNDATASIZE,

Choose a reason for hiding this comment

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

nice use of RETURNDATASIZE. Have you thought about what would happen if generate_default_constructor() is executed after a DELEGATECALL via a proxy? It's really the only scenario I can think of where RETURNDATASIZE could be zero.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The assumption is that it's going to be a standalone constructor but I'll add a comment 👍

Copy link

@robertleifke robertleifke left a comment

Choose a reason for hiding this comment

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

lgtm

@Philogy Philogy merged commit eddc218 into main Feb 3, 2025
6 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.

3 participants