-
Notifications
You must be signed in to change notification settings - Fork 275
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
getting Call the parent initializers in your initializer function
error in the assertUpgradeSafe
method when a fragment other then initialize
is used when deploying a proxy
#1124
Comments
Call the parent initializers in your initializer function
error in the assertUpgradeSafe
method when a fragment other then initialize
is usedCall the parent initializers in your initializer function
error in the assertUpgradeSafe
method when a fragment other then initialize
is used when deploying a proxy
hey @ericglau can you look at this |
In recent versions of the plugin, we added checks for issues with parent initializer calls. The plugin looks for initializer functions in your contract, but does not check reinitializers (since reinitializers do not necessarily need to initialize the entire state). Since your contract has an (Side note: when you removed the For now, you can bypass this error by adding the
I expect the proper fix for this in the plugin should be to support a way for you to specify the function that you want to validate as the initializer. |
thanks, gonna do this, wanted to mention that I got this error even with older versions of the plug-inside the docker env, but locally with those versions didn’t face it, is that sort of expected due to the reasons you mentioned ? |
The Hardhat plugin |
I see and the versioning for the upgrade-core package can’t be overridden by us explicitly when using the hardhat-upgrades package ? |
You could try specifying a specific version of |
this worked @ericglau thanks |
Hi,
I have been getting this issue when deploying a proxy contract in my docker env, here is my deploy script.
The issue is in my contract which has been deployed on mainnet and testnet, I have the following logic
now the issue is when I deploy my contracts on a local hardhat node it works fine, but in my docker env I get the error I mentioned in this issue, if I remove the
initialize
method in my contract then it works fine, but otherwise it doesn't, I also checked this after making the@openzeppelin/hardhat-upgrades
version same in both local and docker env, but got the same issuein docker env
node version : 20.x.x
@openzeppelin/hardhat-upgrades: 3.9.0
I started getting this issue around last week, before it was working fine
what can be the issue here ? would be great if it can be looked at on priority if at all possible
The text was updated successfully, but these errors were encountered: