https://github.com/patitonar/zksync-solidity-compile-error
https://github.com/patitonar/zksync-solidity-compile-error
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patitonar/zksync-solidity-compile-error
- Owner: patitonar
- Created: 2023-05-18T13:13:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T13:18:30.000Z (about 2 years ago)
- Last Synced: 2025-03-23T11:35:00.480Z (3 months ago)
- Language: Solidity
- Size: 52.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zksync compile error
Steps to reproduce:
1. `yarn`
2. `yarn compile`- Compile with regular solc works ok for all solidity versions >= 0.8.0 (Try commenting line 10 in `hardhat.config.ts`)
Compiling with zksolc the following solidity versions (try updating hardhat config and contract fixed versions):
- From 0.8.0 to 0.8.4 Works ok
- From 0.8.5 to 0.8.9 Error `InternalCompilerError: Internal compiler error (/solidity/libsolidity/codegen/ir/IRGeneratorForStatements.cpp:XXXX)`
- From 0.8.10 to 0.8.11 Error `InternalCompilerError: Solidity assertion failed`
- From 0.8.12 to 0.8.19 Works okThe line 13 in LibraryB.sol is causing the compile error.