Browse Source

feat: do not include bytecode hash in bytecode

Paul Razvan Berg 4 năm trước cách đây
mục cha
commit
ca577a5237
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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,