Skip to content

Commit 9442c76

Browse files
committed
docs: make the hre import explicit for ts examples
1 parent 0f6c0f1 commit 9442c76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/content/ignition/docs/guides/scripts.md

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ We will begin by creating a `scripts` directory within our Hardhat project. With
1717
:::tab{value="TypeScript"}
1818

1919
```typescript
20+
import hre from "hardhat";
2021
import ApolloModule from "../ignition/modules/Apollo";
2122

2223
async function main() {
@@ -79,6 +80,7 @@ For this example, let's say we want to dynamically change the name of the `Rocke
7980
:::tab{value="TypeScript"}
8081

8182
```typescript{4}
83+
import hre from "hardhat";
8284
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
8385
8486
export default buildModule("Apollo", (m) => {
@@ -119,6 +121,7 @@ We've added a new parameter to the Ignition module called `rocketName`. This par
119121
:::tab{value="TypeScript"}
120122

121123
```typescript
124+
import hre from "hardhat";
122125
import ApolloModule from "../ignition/modules/Apollo";
123126

124127
async function getRocketNameFromAPI() {

0 commit comments

Comments
 (0)