Ver Fonte

feat: do not include bytecode hash in bytecode

Paul Razvan Berg há 4 anos atrás
pai
commit
ca577a5237
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      hardhat.config.ts

+ 6 - 0
hardhat.config.ts

@@ -75,6 +75,12 @@ const config: HardhatUserConfig = {
   solidity: {
     version: "0.8.1",
     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
       optimizer: {
         enabled: true,