Skip to content

Commit 5e6a640

Browse files
authored
Merge pull request #5124 from Remy9926/docs/guides/creating-modules.md
Update creating-modules.md
2 parents 96f72c0 + 09e9baf commit 5e6a640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/content/ignition/docs/guides/creating-modules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ The first argument is the `Future` object for the contract you want to call, the
112112

113113
In this example, the `m.call` returns a `Future` which we aren't assigning to any variable. This isn't a problem. Hardhat Ignition will execute every `Future` within a module, regardless of whether we store it or not.
114114

115-
If you need to send ETH while calling a function, you can pass an object with options as the third argument to `m.contract`, and put in how much you want to send in the `value` field:
115+
If you need to send ETH while calling a function, you can pass an object with options as the fourth argument to `m.contract`, and put in how much you want to send in the `value` field:
116116

117117
```js
118-
m.call(myContract, "receivesEth" [], {
118+
m.call(myContract, "receivesEth", [], {
119119
value: 1_000_000_000n, // 1gwei
120120
});
121121
```

0 commit comments

Comments
 (0)