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

Support for calling constructor and initializer simultaneously when deploying an upgradeable contract #292

Closed
n0thingness opened this issue Mar 4, 2024 · 0 comments · Fixed by #293
Assignees

Comments

@n0thingness
Copy link
Contributor

This feature is useful when working with upgradable contracts that require an immutable variable to be set. These values are not real variables because they are put into the contract's bytecode and thus can only be set via the constructor.

In deployProxy , the cosntructorArgs need to be passed through from options: DeployOptions to the opts: DeployProxyOptions of the call to upgrades.deployProxy

@n0thingness n0thingness self-assigned this Mar 4, 2024
n0thingness added a commit that referenced this issue Mar 5, 2024
* ability to pass through constructor args when deploying an upgradeable contract with an initializer
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 a pull request may close this issue.

1 participant