deploy-v3 icon indicating copy to clipboard operation
deploy-v3 copied to clipboard

Contract compile options

Open bitdeep opened this issue 3 years ago • 1 comments

Hi, what are the compile options? I mean, number of optimization and compiler version?

I'm testing the deployment script on Harmony, and there we don't have plugin to auto verify contracts, so I need to verify manually.

bitdeep avatar Jan 31 '22 21:01 bitdeep

  solidity: {
    version: '0.7.6',
    settings: {
      optimizer: {
        enabled: true,
        runs: 800,
      },
      metadata: {
        // do not include the metadata hash, since this is machine dependent
        // and we want all generated code to be deterministic
        // https://docs.soliditylang.org/en/v0.7.6/metadata.html
        bytecodeHash: 'none',
      },
    },
  },

derawi avatar Nov 30 '22 15:11 derawi