Skip to content

Commit

Permalink
Merge pull request #4532 from shikhar229169/main
Browse files Browse the repository at this point in the history
added missing square brackets for args
  • Loading branch information
alcuadrado authored Oct 27, 2023
2 parents 3aee6e2 + 11933d0 commit 869df70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/ignition/docs/guides/creating-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ For example, we can modify the `Apollo` module from the [Quick Start guide](../g
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";

export default buildModule("Apollo", (m) => {
const apollo = m.contract("Rocket", m.getParameter("name", "Saturn V"));
const apollo = m.contract("Rocket", [m.getParameter("name", "Saturn V")]);

m.call(apollo, "launch", []);

Expand All @@ -245,7 +245,7 @@ export default buildModule("Apollo", (m) => {
const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules");

module.exports = buildModule("Apollo", (m) => {
const apollo = m.contract("Rocket", m.getParameter("name", "Saturn V"));
const apollo = m.contract("Rocket", [m.getParameter("name", "Saturn V")]);

m.call(apollo, "launch", []);

Expand Down

0 comments on commit 869df70

Please sign in to comment.