Lesson 12 - Upgrades #692
Unanswered
jdonahue94
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hello @jdonahue94 actually a tricky question, could you give as a hand here @PatrickAlphaC ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team - following along with the tutorial (excellent btw), I am getting the following error when deploying an upgrade to my custom (Agora) contract.
ProxyAdmin.upgradeAndCall confirmed (Address: low-level delegate call failed)
Specifically, it seems to occur when adding an initializer to the upgrade function upgrade as such.
upgrade(account, proxy, agoraV2.address, proxy_admin_contract=proxy_admin, initializer=agoraV2.initialize)
Note that I was able to successfully encode and initialize my original contract AND when I remove the initializer from the upgrade function everything is 👌🏼.
Does this make sense: do I not have to call the same initializer on the V2 contract after already have initialized V1?
Happy to add additional code if needed.
Thank you,
Jacob
Beta Was this translation helpful? Give feedback.
All reactions