Ok I had to edit all of the post but basically:
I created a set of upgradable contracts using privkey1
.
Then I changed the private key and forgot to clean .openzeppelin folder
I deployed with privkey2
a new set of upgradable contracts - using deployProxy() as if it was a brand new deployment.
Then I wanted to upgrade one contract and I was getting a revert because caller is not the owner. Later I figured out that my ProxyAdmin has been deployed with privkey1
and not privkey2
.
Are there other unintended consequences from this mistake?
thanks