瀏覽代碼

feat: do not include bytecode hash in bytecode

Paul Razvan Berg 4 年之前
父節點
當前提交
ca577a5237
共有 1 個文件被更改,包括 6 次插入0 次删除
  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,