-
Notifications
You must be signed in to change notification settings - Fork 42
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
create2 factory with initial call #81
Comments
I see where you are coming from but this can be solved within the contract itself rather by changing the contract mainContract is Ownable {
constructor(address owner) {
_transferOwnership(owner);
}
...
} This will lead to 2 events emitted during the contract creation transaction (the first owner will be transferred to For the contract mainContract is AccessControl {
constructor(address admin) {
_grantRole(DEFAULT_ADMIN_ROLE, admin);
}
...
} |
Thanks for your comment! |
I suggest a new factory contract that can pass initial call bytes, like
more can be seen here. wighawag/hardhat-deploy#383
The text was updated successfully, but these errors were encountered: