You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tools/smart-contracts/common-tools/hardhat.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,30 @@
1
1
## Overview
2
2
3
-
Hardhat is an Ethereum development environment that provides an easy way to deploy smart contracts, run tests and debug Solidity code locally.
3
+
Hardhat is an Ethereum development environment for deploying smart contracts, running tests, and debugging Solidity code locally.
4
4
5
-
In this tutorial, you will learn how to set up Hardhat and use it to build, test and deploy a simple smart contract.
5
+
In this tutorial, you will learn how to set up Hardhat and use it to build, test, and deploy a simple smart contract.
6
6
7
-
### What you will do
7
+
##Set up
8
8
9
-
- Set up Hardhat.
10
-
- Create a simple smart contract.
11
-
- Compile the contract.
12
-
- Test the contract.
13
-
- Deploy the contract.
9
+
1. Ensure you have installed the following:
14
10
15
-
## Setting up the development environment
11
+
-[Node.js v10+ LTS and npm](https://nodejs.org/en/).
12
+
-[Git](https://git-scm.com/).
16
13
17
-
There are a few technical requirements before we start. Please install the following:
14
+
2. Create an npm project
18
15
19
-
-[Node.js v10+ LTS and npm](https://nodejs.org/en/) (comes with Node)
20
-
-[Git](https://git-scm.com/)
16
+
```sh
17
+
mkdir hardhat-test
18
+
cd hardhat-test/
19
+
npm init
20
+
```
21
21
22
-
Once we have those installed, you need to create an npm project by going to an empty folder, running `npm init`, and following its instructions to install Hardhat. Once your project is ready, you should run:
22
+
3. Now install Hardhat.
23
23
24
-
```bash
24
+
```sh
25
25
npm install --save-dev hardhat
26
26
```
27
27
28
-
To create your Hardhat project, run `npx hardhat` in your project folder.
29
-
Let’s create the sample project and go through these steps to try out a sample task and compile, test and deploy the sample contract.
30
-
31
28
!!! note
32
29
The sample project used here comes from the [Hardhat Quickstart guide](https://hardhat.org/getting-started/#quick-start), as well as its instructions.
For additional information on Deploy, please refer [Crossmint’s documentation](https://docs.crossmint.com/docs/create-an-nft-collection/?utm_source=backlinks).
0 commit comments