I am trying to upgrade a freshly deployed and upgradeable (Initializable) contract and always get the error
Error: Deployment at address 0x85ba1219df574a97B3a329b1653B61EE496c14a7 is not registered
I don't know even, where this address is retrieved from. It might be from an earlier deployment.
How can I fix that and upgrade my contract?
In the .openzeppelin file the correct proxy and implementation are written.
This looks like an upgrade plugin error. Can you confirm how you deployed the proxy and how you are trying to upgrade it?
Hi @Amxx ,
Thanks for your answer. Meanwhile, I can do upgrades again.
I noticed that there is a difference whether I
truffle compile --all or delete the build directory prior
truffle compile --all. The first case leads to "Replacing , the latter to "Deploying for upgrades. Maybe that lead to the error.