Browse Source

feat: do not include bytecode hash in bytecode

Paul Razvan Berg 4 years ago
parent
commit
ca577a5237
1 changed files with 6 additions and 0 deletions
  1. 6 0
      hardhat.config.ts

+ 6 - 0
hardhat.config.ts

@@ -75,6 +75,12 @@ const config: HardhatUserConfig = {
   solidity: {
   solidity: {
     version: "0.8.1",
     version: "0.8.1",
     settings: {
     settings: {
+      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",
+      },
       // https://hardhat.org/hardhat-network/#solidity-optimizer-support
       // https://hardhat.org/hardhat-network/#solidity-optimizer-support
       optimizer: {
       optimizer: {
         enabled: true,
         enabled: true,