Bug: `hardhat-zksync-solc` download throws with latest `solc` version
pcaversaccio opened this issue · 11 comments
If you use the latest zksolc compiler version 1.3.17
, hardhat-zksync-solc
will throw with a deprecation warning:
Solidity 0.8.23 is not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly.
Learn more at https://hardhat.org/hardhat-runner/docs/reference/solidity-support
Error in plugin @matterlabs/hardhat-zksync-solc: Deprecated zksolc compiler version in hardhat config file (1.3.17). Please use versions 1.3.13 to 1.3.16.
@pcaversaccio Can you try removing the compilerVersionInfo.json
file from the directory where the zksolc compilers are stored (on macOS the path is usually something like: /Users/.../Library/Caches/hardhat-nodejs/compilers-v2/zksolc
) and than try again?
Ok nvw, I found it C:\Users\user\AppData\Local\hardhat-nodejs\Cache\compilers-v2\zksolc
Alright, deleted and retried and still same issue...
Did you maybe manually set in hardhat.config
file zksolc version to 1.3.17?
Did you maybe manually set in
hardhat.config
file zksolc version to 1.3.17?
Yes.
For replication, you can use my repo here: https://github.com/pcaversaccio/hardhat-project-template-ts
The reason why it is failing with the 1.3.17 version is because new version of the plugin (1.0.1) uses CDN for obtaining the version info file (because of the throttling issues with GH), where currently says that the latest version is 1.3.16. We will try to force removing the cache or finding better CDN. You can set version to "latest" until we fix the issue.
You can set version to "latest" until we fix the issue.
How does this resolve the issue? It still points to 1.3.16
in that case...
@mpopovac-txfusion why is it using x.16 as the highest version when the repo version.json has x.17 as latest? https://github.com/matter-labs/zksolc-bin/blob/main/version.json
Hello @pcaversaccio , please use the latest version of @matterlabs/hardhat-zksync-solc plugin (v 1.0.2) where this is fixed, thanks.
Can confirm that after deleting again the compilerVersionInfo.json
file, it finally worked.