zkSync-Community-Hub / zksync-developers

Project for Discussions with the ZKsync Community.
369 stars 233 forks source link

[Compilers] `bytecodehash` property in metadata settings doesn't have `ipfs` option #655

Open bxpana opened 3 months ago

bxpana commented 3 months ago

Discussed in https://github.com/zkSync-Community-Hub/zksync-developers/discussions/194

Originally posted by **kumaryash90** November 1, 2023 ### Which compiler are you using? - [X] zksolc - [ ] zkvyper ### Which version of Solidity or Vyper? 0.8.17 ### zksolc/zkvyper version? 1.3.15 ### Explain the issue While the latest zksolc compiler versions have a "metadata" option in settings, it doesn't allow setting it equal to "ipfs", which is usually a default setting for solc compiler. i.e. it should be possible to set the `bytecodehash` below to `ipfs` ```bash zksolc: { version: "1.3.15", compilerSource: "binary", settings: { metadata: { bytecodeHash: "none", }, optimizer: { enabled: true, }, }, }, ``` ### Link to your repo? _No response_