From 169a446769398d3cc36ca1b424904f7e7bf430fc Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 6 Apr 2022 14:51:25 +0200 Subject: [PATCH] Enable solidity optimizer Contract size was becoming too large without optimization. --- hardhat.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hardhat.config.js b/hardhat.config.js index 6129ed5..2399e1f 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -3,7 +3,15 @@ require("hardhat-deploy") require("hardhat-deploy-ethers") module.exports = { - solidity: "0.8.4", + solidity: { + version: "0.8.4", + settings: { + optimizer: { + enabled: true, + runs: 1000, + }, + }, + }, namedAccounts: { deployer: { default: 0 }, },