Closed pcaversaccio closed 4 months ago
Hello @pcaversaccio ,
The issue arises because tenderly, as a dependency, imports @openzeppelin/hardhat-upgrades
, which invokes the validate function. Since the hardhat-zksync-upgradable plugin is not imported into your project, it generates an error. To resolve this, add hardhat-zksync-upgradable
as a dependency and import it into your hardhat.config.ts file. This will make the compilation work. However, note that hardhat-zksync-upgradable
only supports OpenZeppelin v4, whereas your project uses OpenZeppelin v5, so the plugin will not work properly (but compilation will be successful). The best approach is not to import @tenderly/hardhat-tenderly
when using a zkSync network (e.g., add a flag to decide when to import the package and when not to). Doing so should resolve the issue.
After upgrading to the latest package versions, I face the following error at compilation time:
Use this repo for reproduction: https://github.com/pcaversaccio/hardhat-project-template-ts. Invoke
pnpm install
, uncommentzksync: true
in thehardhat.config.ts
, and compile withhardhat compile --force
.I'm not 100% sure yet if it's related to https://github.com/matter-labs/hardhat-zksync/issues/240 and https://github.com/matter-labs/hardhat-zksync/issues/998, that's why I open a new issue.