Contract at 0x4ED2156eB3881665c29792A9BA97Ce66D84070B8 doesn't look like an ERC 1967 proxy with a logic contract address

Hi everyone, I have deployed a contract long time ago on a private blockchain branched from Ethereum. I'm now trying to update the contract but I get the following error:

    throw new EIP1967ImplementationNotFound(
          ^
EIP1967ImplementationNotFound [Error]: Contract at 0x4ED2156eB3881665c29792A9BA97Ce66D84070B8 doesn't look like an ERC 1967 proxy with a logic contract address


    at getImplementationAddress (/Users/nicolovanzo/Documents/work/commonshood/commonshood-contracts/node_modules/@openzeppelin/upgrades-core/src/eip-1967.ts:29:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async processProxyImpl (/Users/nicolovanzo/Documents/work/commonshood/commonshood-contracts/node_modules/@openzeppelin/hardhat-upgrades/src/utils/validate-impl.ts:23:26)
    at async validateProxyImpl (/Users/nicolovanzo/Documents/work/commonshood/commonshood-contracts/node_modules/@openzeppelin/hardhat-upgrades/src/utils/validate-impl.ts:62:30)
    at async deployProxyImpl (/Users/nicolovanzo/Documents/work/commonshood/commonshood-contracts/node_modules/@openzeppelin/hardhat-upgrades/src/utils/deploy-impl.ts:73:3)
    at async Proxy.upgradeProxy (/Users/nicolovanzo/Documents/work/commonshood/commonshood-contracts/node_modules/@openzeppelin/hardhat-upgrades/src/upgrade-proxy.ts:28:32)
    at async main (/Users/nicolovanzo/Documents/work/commonshood/commonshood-contracts/scripts/upgradeVersions/upgradeLOT.ts:6:3)

I cant' deploy another contract so I need a way to fix this, I think something happened to the .openzeppelin file (I'm not the only one working on this project).

This error occurs if the Hardhat Upgrades plugin detects that the erc1967 implementation slot is not set at the given proxy address. Which means it does not look like a proxy (or it could be a beacon proxy). Double check that the address is correct and is a UUPS or transparent proxy on your private chain.

1 Like