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

Document factory deployment (with foundry) #3

Open
fmnxl opened this issue Nov 4, 2022 · 0 comments
Open

Document factory deployment (with foundry) #3

fmnxl opened this issue Nov 4, 2022 · 0 comments

Comments

@fmnxl
Copy link

fmnxl commented Nov 4, 2022

Document how the CREATE3Factory itself should be deployed on different chains so that it deploys contracts to the same addresses.

e.g. for foundry scripts

function run() public {
  vm.startBroadcast();

  // Keep the same salt across different chains
  CREATE3Factory factory = new CREATE3Factory{salt: "MY_CREATE3_FACTORY"}();
  
  factory.deploy(...);
  ...

I believe the deployed address of the factory itself matters? Correct me if I'm wrong.

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

1 participant