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
Type error when using verifyUpgrade with constructorArgs options #647
Comments
We don't have a function called |
🤦♂️Sorry, I meant |
Are you sure that it is necessary to pass |
If I don't pass them, it fails with the following error:
|
Hey there!
|
@sujantkumarkv
Initializers are generally used instead of constructors for upgradeable contracts. However, constructors could still be included which run only for the implementation contract itself, and this can be used to set immutable variables in some cases. We also recommend having a constructor with |
I'm trying to upgrade a contract that was initially deployed with a constructor on the implementation, and particularly, with arguments via the
constructorArgs
option. The new implementation will use the same pattern, but we're facing now thatupgrades.verifyUpgrade()
doesn't allow us to useconstructorArgs
as an option:Note that disabling the TypeScript check with
// @ts-ignore:
works, but I'd like to avoid this.The text was updated successfully, but these errors were encountered: