Skip to content

Commit f652fc1

Browse files
committed
Use consistent format for multiline comments
1 parent fbcfb9c commit f652fc1

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

docs/src/content/ignition/docs/advanced/migrating.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
126126
const { deployments, getNamedAccounts } = hre;
127127
const { deploy } = deployments;
128128
/*
129-
The deploy function uses the hardhat-deploy named accounts feature
130-
to set the deployment's `from` and `args` parameters.
131-
*/
129+
The deploy function uses the hardhat-deploy named accounts feature
130+
to set the deployment's `from` and `args` parameters.
131+
*/
132132
const { deployer, tokenOwner } = await getNamedAccounts();
133133
await deploy("Token", {
134134
from: deployer,
@@ -156,28 +156,28 @@ import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
156156
*/
157157
export default buildModule("TokenModule", (m) => {
158158
/*
159-
Instead of named accounts, you get access to the configured accounts
160-
through the `getAccount()` method.
161-
*/
159+
Instead of named accounts, you get access to the configured accounts
160+
through the `getAccount()` method.
161+
*/
162162
const deployer = m.getAccount(0);
163163
const tokenOwner = m.getAccount(1);
164164

165165
/*
166-
Deploy `Token` by calling `contract()` with the constructor arguments
167-
as the second argument. The account to use for the deployment transaction
168-
is set through `from` in the third argument, which is an options object.
169-
*/
166+
Deploy `Token` by calling `contract()` with the constructor arguments
167+
as the second argument. The account to use for the deployment transaction
168+
is set through `from` in the third argument, which is an options object.
169+
*/
170170
const token = m.contract("Token", [tokenOwner], {
171171
from: deployer,
172172
});
173173

174174
/*
175-
The call to `m.contract()` returns a future that can be used in other `m.contract()`
176-
calls (e.g. as a constructor argument, where the future will resolve to the
177-
deployed address), but it can also be returned from the module. Contract
178-
futures that are returned from the module can be leveraged in Hardhat tests
179-
and scripts, as will be shown later.
180-
*/
175+
The call to `m.contract()` returns a future that can be used in other `m.contract()`
176+
calls (e.g. as a constructor argument, where the future will resolve to the
177+
deployed address), but it can also be returned from the module. Contract
178+
futures that are returned from the module can be leveraged in Hardhat tests
179+
and scripts, as will be shown later.
180+
*/
181181
return { token };
182182
});
183183
```
@@ -197,28 +197,28 @@ const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules");
197197
*/
198198
module.exports = buildModule("TokenModule", (m) => {
199199
/*
200-
Instead of named accounts, you get access to the configured accounts
201-
through the `getAccount()` method.
202-
*/
200+
Instead of named accounts, you get access to the configured accounts
201+
through the `getAccount()` method.
202+
*/
203203
const deployer = m.getAccount(0);
204204
const tokenOwner = m.getAccount(1);
205205

206206
/*
207-
Deploy `Token` by calling `contract()` with the constructor arguments
208-
as the second argument. The account to use for the deployment transaction
209-
is set through `from` in the third argument, which is an options object.
210-
*/
207+
Deploy `Token` by calling `contract()` with the constructor arguments
208+
as the second argument. The account to use for the deployment transaction
209+
is set through `from` in the third argument, which is an options object.
210+
*/
211211
const token = m.contract("Token", [tokenOwner], {
212212
from: deployer,
213213
});
214214

215215
/*
216-
The call to `m.contract()` returns a future that can be used in other `m.contract()`
217-
calls (e.g. as a constructor argument, where the future will resolve to the
218-
deployed address), but it can also be returned from the module. Contract
219-
futures that are returned from the module can be leveraged in Hardhat tests
220-
and scripts, as will be shown later.
221-
*/
216+
The call to `m.contract()` returns a future that can be used in other `m.contract()`
217+
calls (e.g. as a constructor argument, where the future will resolve to the
218+
deployed address), but it can also be returned from the module. Contract
219+
futures that are returned from the module can be leveraged in Hardhat tests
220+
and scripts, as will be shown later.
221+
*/
222222
return { token };
223223
});
224224
```

0 commit comments

Comments
 (0)