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

How does uniswap make the development network and the official network contract address the same. #124

Open
dulumao opened this issue Jun 2, 2021 · 4 comments

Comments

@dulumao
Copy link

dulumao commented Jun 2, 2021

It's amazing

@RusseII
Copy link

RusseII commented Jan 18, 2022

@dulumao did you find the answer to this?

@timwuu
Copy link

timwuu commented Mar 5, 2022

The address comes from the creator's address and the number of transactions sent from that address (the “nonce”). from https://ethereum.org/en/developers/docs/accounts/

@MicahZoltu
Copy link

MicahZoltu commented Mar 5, 2022

Using CREATE2. There are contracts that exist on most networks that help facilitate this like https://github.com/Zoltu/deterministic-deployment-proxy

@ghost
Copy link

ghost commented Dec 31, 2023

If you use a same account and same nonce for different networks, contract address would be the same whether they have the same bytecode or not ( somehow better than create2 ).

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

No branches or pull requests

4 participants