-
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
Error: Define an initializer function and use it to call the initializers of parent contracts
#1125
Comments
hey @vladimir-trifonov I am getting a similar issue #1124, do you remember which version of the |
I was having the same issue as you before, but I removed the
in the upgraded contract, because either way, I don't need it. But this current issue is breaking the upgrade altogether. |
hmm I had |
We added checks to detect issues in parent initializer calls in @openzeppelin/[email protected]. In your scenario, since you are upgrading and if you don't need an initializer in your upgraded contract, you can skip the From Foundry:
From Hardhat:
We may consider fixing the plugin to skip this by default when upgrading. |
I saw this
|
The plugin currently doesn't validate reinitializers, but we may add #1122 to allow you to specify that your |
I get
when I try to upgrade from v1 to v2 of the smart contract. This error happens when
is executed.
I didn't have this error with @openzeppelin/upgrades-core v1.41.0.
My v2 initializer:
The text was updated successfully, but these errors were encountered: