Skip to content

Commit 6fb1152

Browse files
committed
Small fixes to dependencies section
1 parent d7c9c2d commit 6fb1152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ solidity: {
125125
TODO—blocked until dependency resolution is finalized.
126126
-->
127127

128-
## Generating artifacts from dependencies
128+
## Generating artifacts from npm dependencies
129129

130-
By default, Hardhat generates compilation artifacts for all the contracts in your project, but not for those in the project’s dependencies. If you want to generate artifacts for a specific file in a dependency, you can use the `dependenciesToCompile` property:
130+
By default, Hardhat generates compilation artifacts for all the contracts in your project, but not for those in the project’s npm dependencies. If you want to generate artifacts for a specific file in a dependency, you can use the `dependenciesToCompile` property:
131131

132132
```typescript
133133
solidity: {
@@ -138,7 +138,7 @@ solidity: {
138138
},
139139
```
140140

141-
Artifacts can be used to deploy contracts or to obtain their ABIs, among other things. For example, once you’ve configured Hardhat to generate artifacts for `some-dependency/SomeContract.sol`, you can use that contract in a TypeScript test:
141+
Artifacts can be used to deploy contracts or to obtain their ABIs, among other things. For example, once you’ve configured Hardhat to generate artifacts for `some-dependency/contracts/SomeContract.sol`, you can use that contract in a TypeScript test:
142142

143143
```typescript
144144
const someContract = await viem.deployContract("SomeContract");

0 commit comments

Comments
 (0)