Skip to content

Fix ERC1967Upgrade.huff offset bug and incorrect delegatecall params#147

Open
kadenzipfel wants to merge 3 commits into
mainfrom
fix/ERC1967-offset-bug
Open

Fix ERC1967Upgrade.huff offset bug and incorrect delegatecall params#147
kadenzipfel wants to merge 3 commits into
mainfrom
fix/ERC1967-offset-bug

Conversation

@kadenzipfel

Copy link
Copy Markdown
Collaborator

We use the incorrect byte offset to retrieve passed calldata, starting from the function selector when we should start immediately after it

Additionally, testing this fix uncovered another bug: the delegatecall parameters are all mixed up due to incorrect stack management

Neither of the affected macros appear to have ever been deployed to production

@kadenzipfel kadenzipfel force-pushed the fix/ERC1967-offset-bug branch from de52da7 to cb72c01 Compare July 6, 2026 18:08
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.

1 participant