Skip to content

Commit

Permalink
Update Hardhat tutorial using the new Ignition module FLR-947
Browse files Browse the repository at this point in the history
  • Loading branch information
fassko authored and segfaultxavi committed Mar 21, 2024
1 parent b10e84c commit 3794bdf
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions docs/dev/getting-started/setup/hardhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ require('dotenv').config();
require("@nomicfoundation/hardhat-toolbox");

module.exports = {
solidity: "0.8.17",
solidity: "0.8.24",
networks: {
hardhat: {
},
Expand Down Expand Up @@ -183,7 +183,7 @@ You should get:

### 6. Deploy the Contract

Now, you will deploy the contract to Flare's test network, [Coston2](../../reference/network-config.md), using a Hardhat script from the `scripts` folder.
Now, you will deploy the contract to Flare's test network, [Coston2](../../reference/network-config.md), using the Hardhat Ignition module and script inside the `ignition/modules`.

!!! warning

Expand All @@ -198,13 +198,27 @@ Now, you will deploy the contract to Flare's test network, [Coston2](../../refer
Run this command at the root of the project:

```bash
npx hardhat run scripts/deploy.js --network coston2
npx hardhat ignition deploy ./ignition/modules/Lock.js --network coston2
```

Confirm that you want to deploy the contract on the Coston2 network.

You should get an output similar to:

```text
Lock with 1 ETH and unlock timestamp 1705592309 deployed to 0xdC7781FA9fA7e2d0313cd0229a5080B4e30663a5
✔ Confirm deploy to network coston2 (114)? … yes
Hardhat Ignition 🚀
Deploying [ LockModule ]
Batch #1
Executed LockModule#Lock
[ LockModule ] successfully deployed 🚀
Deployed Addresses
LockModule#Lock - 0xDCCa38aF18A3b87c4171AEBD6c9753932Ad0c80F
```

The last part is the address where the contract has been deployed.
Expand Down

0 comments on commit 3794bdf

Please sign in to comment.