Skip to content

Commit

Permalink
[Hardhat] Include bytecode hash (#284)
Browse files Browse the repository at this point in the history
include bytecodeHash in compilation
  • Loading branch information
nxqbao authored Sep 25, 2023
1 parent e889a0a commit 1762246
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 92 deletions.
14 changes: 7 additions & 7 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@ const compilerConfig: SolcUserConfig = {
enabled: true,
runs: 200,
},
/// @dev see: https://github.com/Uniswap/v3-core/blob/main/hardhat.config.ts
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.8.17/metadata.html
bytecodeHash: 'none',
},
},
};

Expand All @@ -123,6 +116,13 @@ const config: HardhatUserConfig = {
enabled: true,
runs: 10,
},
/// @dev see: https://github.com/Uniswap/v3-core/blob/main/hardhat.config.ts
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.8.17/metadata.html
bytecodeHash: 'none',
},
},
},
},
Expand Down
Loading

0 comments on commit 1762246

Please sign in to comment.