Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcwebdev authored Nov 4, 2022
1 parent 42229a5 commit 414433b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions polygon/erc721a-implementation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ This project is based on the guide, [How To Batch Mint NFTs Using the ERC-721A I

### Clone Example Monorepo

To begin, clone the qn-guide-examples repo and navigate to this project's directory.
To begin, clone the `qn-guide-examples` repo and navigate to this project's directory.

```bash
git clone https://github.com/quiknode-labs/qn-guide-examples.git
cd qn-guide-examples/polygon/erc721a-implementation
```

### Add Environment Variables

Create an **.env** file and add your environment variables in the following format:
Create a `.env` file and add your environment variables in the following format:

```
PRIVATE_KEY=
Expand All @@ -22,33 +24,33 @@ RPC_URL=

Npm should be used to install project directories:

```
```bash
npm i
```

### Compile Contracts

To compile the set of smart contracts, run the following command:

```
```bash
npx hardhat compile
```

### Deploy Contract

To deploy the BatchNFTs contract to Mumbai testnet, run the following command:

```
```bash
npx hardhat run --network mumbai scripts/deploy.js
```

> As configured in **hardhat.config.js** and **deploy.js**
> As configured in `hardhat.config.js` and `deploy.js`.

### Minting NFTs

To mint NFTs, run the following command:

```
```bash
npx hardhat run --network mumbai scripts/mint.js
```
```

0 comments on commit 414433b

Please sign in to comment.