Skip to content

Commit d7c9c2d

Browse files
committed
Reformat compilers lists
1 parent 80ff52b commit d7c9c2d

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

src/content/hardhat3-alpha/learn-more/configuring-the-compiler.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,20 @@ Some projects need to compile different files with different `solc` versions. To
5252

5353
```typescript
5454
solidity: {
55-
compilers: [{
56-
version: "0.7.6"
57-
}, {
58-
version: "0.8.11"
59-
}, {
60-
version: "0.8.29",
61-
settings: {
62-
optimizer: { enabled: true }
55+
compilers: [
56+
{
57+
version: "0.7.6"
58+
},
59+
{
60+
version: "0.8.11"
61+
},
62+
{
63+
version: "0.8.29",
64+
settings: {
65+
optimizer: { enabled: true }
66+
}
6367
}
64-
}]
68+
]
6569
},
6670
```
6771

@@ -97,9 +101,11 @@ You can use overrides even if you are using a single solc version, but you still
97101

98102
```typescript
99103
solidity: {
100-
compilers: [{
101-
version: "0.8.29",
102-
}],
104+
compilers: [
105+
{
106+
version: "0.8.29",
107+
}
108+
],
103109
overrides: {
104110
"contracts/Foo.sol": {
105111
version: "0.8.29",

0 commit comments

Comments
 (0)