Skip to content

Commit

Permalink
remove punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
themacexpert committed Apr 11, 2024
1 parent f51400d commit 3d88f09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builders/build/eth-api/dev-env/hardhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,21 +264,21 @@ Next, you can write your Hardhat Ignition module. To get started, take the follo
5. Return an object from the module. This makes the `Box` contract accessible for interaction in Hardhat tests and scripts

```js
// 1. Import the `buildModule` function from the Hardhat Ignition module.
// 1. Import the `buildModule` function from the Hardhat Ignition module
const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules");

// 2. Export a module using `buildModule`.
// 2. Export a module using `buildModule`
module.exports = buildModule("BoxModule", (m) => {

// 3. Use the `getAccount` method to select the deployer account.
// 3. Use the `getAccount` method to select the deployer account
const deployer = m.getAccount(0);

// 4. Deploy the `Box` contract
const box = m.contract("Box", [], {
from: deployer,
});

// 5. Return an object from the module.
// 5. Return an object from the module
return { box };
});

Expand Down

0 comments on commit 3d88f09

Please sign in to comment.