Closed Khang-NT closed 5 months ago
Hello @Khang-NT, this issue is not with the plugin. The plugin serves merely as a bridge between the Hardhat and zksolc compilers to simplify the user's workflow, preventing the need for manual contract compilation. Please post this issue on the zksolc compiler repository.
๐ Bug Report for hardaht-zksync plugins
๐ฅ Plugin name
๐ Description
Hardhat config:
๐ Reproduction Steps
Set
optimizer.mode = "3"
and run again:zksolc
produces insane large bytecode size, x3 timessolc
produces when usingoptimizer.mode = 'z'
, and x5 when usingoptimizer.mode = "3"
Here's
USDC.sol
, just a simple ERC20 contract:๐ฅ๏ธ Environment