From 86031daa5c70bcede77d0ade2ed010e90ee1f450 Mon Sep 17 00:00:00 2001 From: catel <> Date: Wed, 6 Sep 2023 12:34:21 +0800 Subject: [PATCH] modify optimizer --- hardhat.config.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index dbeffec..9fe37df 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -4,13 +4,16 @@ require('solidity-coverage') require("hardhat-gas-reporter"); module.exports = { - solidity: "0.8.17", + solidity: { + version: "0.8.17", + settings: { + optimizer: { + enabled: true + }, + }, + }, gasReporter: { enabled: true }, - settings: { - optimizer: { - enabled: true - }, - }, + };