Skip to content

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

@bxpana

Description

@bxpana

Discussed in #194

Originally posted by kumaryash90 November 1, 2023

Which compiler are you using?

  • 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

zksolc: {
    version: "1.3.15",
    compilerSource: "binary",
    settings: {
      metadata: {
        bytecodeHash: "none",
      },
      optimizer: {
        enabled: true,
      },
    },
  },

Link to your repo?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPThe issue is currently being worked oncompilerQuestion for compilingdocsItems needed to be added or updated in the documentationfeature-requestFeature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions