Commit d6deb96e authored by elenadimitrova's avatar elenadimitrova Committed by Kelvin Fichter

Enable the metadata output for contracts compilation

parent fb70e4cd
...@@ -25,9 +25,12 @@ const config: HardhatUserConfig = { ...@@ -25,9 +25,12 @@ const config: HardhatUserConfig = {
enabled: true, enabled: true,
runs: 200, runs: 200,
}, },
metadata: {
bytecodeHash: 'none',
},
outputSelection: { outputSelection: {
'*': { '*': {
'*': ['storageLayout'], '*': ['metadata', 'storageLayout'],
}, },
}, },
}, },
......
...@@ -62,29 +62,26 @@ const config: HardhatUserConfig = { ...@@ -62,29 +62,26 @@ const config: HardhatUserConfig = {
version: '0.8.9', version: '0.8.9',
settings: { settings: {
optimizer: { enabled: true, runs: 10_000 }, optimizer: { enabled: true, runs: 10_000 },
metadata: {
bytecodeHash: 'none',
},
outputSelection: {
'*': {
'*': ['storageLayout'],
},
},
}, },
}, },
{ {
version: '0.5.17', // Required for WETH9 version: '0.5.17', // Required for WETH9
settings: { settings: {
optimizer: { enabled: true, runs: 10_000 }, optimizer: { enabled: true, runs: 10_000 },
},
},
],
settings: {
metadata: {
bytecodeHash: 'none',
},
outputSelection: { outputSelection: {
'*': { '*': {
'*': ['storageLayout'], '*': ['metadata', 'storageLayout'],
}, },
}, },
}, },
}, },
],
},
typechain: { typechain: {
outDir: 'dist/types', outDir: 'dist/types',
target: 'ethers-v5', target: 'ethers-v5',
......
...@@ -16,7 +16,7 @@ const config: HardhatUserConfig = { ...@@ -16,7 +16,7 @@ const config: HardhatUserConfig = {
}, },
outputSelection: { outputSelection: {
'*': { '*': {
'*': ['storageLayout'], '*': ['metadata', 'storageLayout'],
}, },
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment