Skip to content

Commit e2e57e4

Browse files
committed
update hardhat config
1 parent 7ae194a commit e2e57e4

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

hardhat.config.ts

+25-9
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,32 @@ function getForkingSettings() {
7676

7777
const config: HardhatUserConfig = {
7878
solidity: {
79-
version: "0.8.9",
80-
settings: {
81-
metadata: {
82-
bytecodeHash: "none",
79+
compilers: [
80+
{
81+
version: "0.8.9",
82+
settings: {
83+
metadata: {
84+
bytecodeHash: "none",
85+
},
86+
optimizer: {
87+
enabled: true,
88+
runs: 800,
89+
},
90+
},
8391
},
84-
optimizer: {
85-
enabled: true,
86-
runs: 800,
87-
},
88-
},
92+
{
93+
version: "0.8.18",
94+
settings: {
95+
metadata: {
96+
bytecodeHash: "none",
97+
},
98+
optimizer: {
99+
enabled: true,
100+
runs: 800,
101+
},
102+
},
103+
}
104+
],
89105
},
90106
networks: {
91107
local: {

0 commit comments

Comments
 (0)