Enable solidity optimizer

Contract size was becoming too large without optimization.
This commit is contained in:
Mark Spanbroek 2022-04-06 14:51:25 +02:00 committed by markspanbroek
parent b8ce6c3682
commit 169a446769
1 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,15 @@ require("hardhat-deploy")
require("hardhat-deploy-ethers") require("hardhat-deploy-ethers")
module.exports = { module.exports = {
solidity: "0.8.4", solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
namedAccounts: { namedAccounts: {
deployer: { default: 0 }, deployer: { default: 0 },
}, },