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 definition of predeploy namespace #339

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Fix definition of predeploy namespace #339

merged 4 commits into from
Oct 14, 2024

Conversation

geoknee
Copy link
Contributor

@geoknee geoknee commented Aug 15, 2024

Drive-by question:

Has it always been the case that predeploys live in a 1 byte namespace?

I think this is a counterexample https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000800

@geoknee geoknee requested a review from tynes as a code owner August 15, 2024 15:46
@tynes
Copy link
Contributor

tynes commented Sep 18, 2024

This is definitely a bug, there are a total of 2048 predeploys, that is bigger than a 1 byte namespace

@@ -39,7 +39,7 @@ network forking.

Predeploy addresses exist in 1 byte namespace `0x42000000000000000000000000000000000000xx`.
Proxies are set at each possible predeploy address except for the
`GovernanceToken` and the `ProxyAdmin`.
`GovernanceToken`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this should be updated, i believe weth has no proxy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@geoknee
Copy link
Contributor Author

geoknee commented Sep 19, 2024

This is definitely a bug, there are a total of 2048 predeploys, that is bigger than a 1 byte namespace

Updated here 51b1497

@geoknee geoknee changed the title Update predeploys.md Fid definition of predeploy namespace Sep 25, 2024
@geoknee geoknee changed the title Fid definition of predeploy namespace Fix definition of predeploy namespace Sep 25, 2024
Predeploy addresses exist in 1 byte namespace `0x42000000000000000000000000000000000000xx`.
Proxies are set at each possible predeploy address except for the
`GovernanceToken` and the `ProxyAdmin`.
Predeploy addresses exist in a prefixed namespace `0x420xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you think that we should only use x in the least significant 3 nibbles to represent the fact that they are the only things that can change?

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 deleted sentence contradicts the rest of the document, which states that the proxyadmin is itself a proxied contract.
@tynes tynes merged commit 80338ad into main Oct 14, 2024
1 check passed
@tynes tynes deleted the geoknee-patch-2 branch October 14, 2024 20:12
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