Skip to content

Commit 958fc91

Browse files
committed
Minor textual adjustments from line 880. Add forum link, outro + footer
1 parent 0929825 commit 958fc91

File tree

1 file changed

+42
-20
lines changed
  • pages/lessons/projects

1 file changed

+42
-20
lines changed

pages/lessons/projects/3.mdx

Lines changed: 42 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ icons:
1919
import OpenZeppelin from '../fundamentals/open_zeppelin.mdx'
2020
import { LessonHeader } from '../../../components/mdx/LessonHeader'
2121

22-
<LessonHeader title="Lesson 3: Tier NFTs" />
22+
<LessonHeader
23+
title="Lesson 3: Tier NFTs"
24+
discussionUrl="https://developerdao.peeranha.io/discussions"
25+
/>
2326

2427
## About this lesson
2528

@@ -881,17 +884,17 @@ module.exports = {
881884

882885

883886

884-
What we are doing is adding the RPC and the network to the config file. Now we need to
885-
connect our wallet to the testnet and add some testnet tokens, so we can actually pay for the deployment of the contract.
887+
Do you remember in *Build a Basic NFT* we looked at Ethereum RPC (remote procedure call) node providers? What we are doing is adding the RPC and network configuration to the config file. This will let you, as the deployer, connect **your** wallet to the testnet. Now we need to add some testnet tokens, so we can actually **pay** for the deployment of the contract!
886888

887889
### Adding the testnet network
888890

889-
To add the Polygon Mumbai network head over to the
891+
This time we're using Polygon Mumbai test network. Head over to the
890892
[Chainlist](https://chainlist.org/) page and connect your wallet. Make sure you toggle
891893
the testnet button, otherwise no testnets will show up, and search for Mumbai. You will see the testnet network
892-
with chainID 80001. Add it to your wallet.
893-
Note: **Always make sure to use a separate browser profile, with a separate wallet, holding only testnet tokens, for any tutorials. See our section on Wallets for background on your security, your private keys and your recovery seed phrases!**
894-
894+
with chainID 80001. Add it to your wallet.
895+
<br/>
896+
Note: **Always make sure to use a separate browser profile, with a separate wallet, holding only testnet tokens, for any tutorials. See our Fundamental on *Introduction to web3 Wallets* for background on your security, your private keys and your recovery seed phrases!**
897+
<br/>
895898
![2_faucet.png](/assets/lessons/3/2_faucet.png)
896899

897900
### Getting Some Testnet Funds
@@ -900,7 +903,7 @@ A testnet is a sandbox environment where developers
900903
can test, create and modify functionalities, monitor and simulate a mainnet blockchain's network
901904
performance, fix bugs and other network failures without having to worry about breaking a main chain, and paying in real crypto coins to do so! Mainnets cost - testnets generally don't.
902905

903-
We get testnet tokens from faucets. A faucet is a website, which on request, will *drip* a small amount of testnet tokens onto your address, and sometimes require completion of small tasks before doing so.
906+
We get testnet tokens from faucets. A faucet is a website, which on request, will **drip** a small amount of testnet tokens onto your address, and sometimes require completion of small tasks before doing so.
904907
some testnet on the wallets.
905908
Note: Testnet and mainnet are separate networks. You can't for example send tokens from a testnet to a mainnet. Let's head over and get some on this
906909
[website](https://faucet.paradigm.xyz/).
@@ -910,17 +913,17 @@ Note: Testnet and mainnet are separate networks. You can't for example send toke
910913
If you complete the required tasks, you can get tokens for multiple testnets.
911914

912915

913-
Before we deploy, we need to add a `.env` file to our root folder to make sure we are **not pushing our private keys into public repositories**.
916+
Before we deploy, we need to add a `.env` file to our root folder to make sure we are **not pushing and therefore exposing our private keys in public repositories**.
914917

915-
For your wallet's private key, the most sensitive data of the project, you need to open Metamask, click on the three dots next to your Account Name, and then on Account Details, then click on Export Private Key. It will ask for your Metamask password, the one you use to open it, NOT your seed phrase. It also shows you a
916-
notice so you know that you are entering the danger zone. Confirm and you'll be able to copy your private key. Add your private key into the `.env` file like so:
918+
For your wallet's private key, the most sensitive data of the project, you need to open Metamask. Click on the three dots next to your Account Name, and then on Account Details, click on Export Private Key. It will ask for your Metamask password, the one you use to log in to your wallet each session, not your seed phrase. It also shows you a
919+
notice so you know that you are entering the *danger zone*. Confirm and you'll be able to copy your private key. Add your private key into the `.env` file like so:
917920

918921
```bash
919922
PRIVATE_KEY=f8abc629b....
920923
```
921924

922925
<Callout emoji='💡' size='md' variant='info'>
923-
Also, make sure you have a line that says `.env` in the `.gitignore` file in our
926+
Also, make sure you have a line that says `.env` in the `.gitignore` file in your
924927
root folder. If this file doesn't exist, create it and add that line! This makes
925928
sure we don't accidentally upload our `.env` file to our public repositories by
926929
mistake.
@@ -946,8 +949,7 @@ We will deploy our smart contract by using this command:
946949
npx hardhat run scripts/deploy.js --network mumbai
947950
```
948951

949-
We specify where we want the contract to be deployed in the `—-network` part
950-
of the command.
952+
We specify the network where we want the contract to be deployed using the --network option.
951953

952954
![4_deploy.png](/assets/lessons/3/4_deploy.png)
953955

@@ -959,7 +961,7 @@ Without a new script we won’t be able to mint any of our NFTs.
959961

960962
The mint function will run three times to mint each different Tier.
961963

962-
The code for what we want is below, but we need a home for it. So let's go back to the `/scripts` directory and create a `mint.js` file and paste in the code below. When we're done, we can grab our shiny new contract address from the command line and paste it after `const CONTRACT_ADDRESS =` in the file:
964+
The code for what we want is below, but we need a home for it. So let's go back to the `/scripts` directory and create a `mint.js` file. Copy in the following code. When we're done, we can grab our shiny new contract address from the command line, and paste it in after `const CONTRACT_ADDRESS =`.
963965

964966
```jsx
965967
const hre = require('hardhat')
@@ -1032,18 +1034,38 @@ If we look at our terminal we will see something like this.
10321034

10331035
![5_mint.png](/assets/lessons/3/5_mint.png)
10341036

1035-
We have just minted 3 NFTs with different Tiers!
1037+
You have just minted 3 NFTs - with different Tiers!
10361038

10371039
Let’s go ahead and view them on the Opensea marketplace. This could take a few
1038-
minutes to appear, don't panic. You can search your newly created collection
1039-
with your contract address or with the name that you chose in
1040-
[https://testnets.opensea.io/](https://testnets.opensea.io/)
1041-
1040+
minutes to appear, don't panic. You can search in
1041+
[https://testnets.opensea.io/](https://testnets.opensea.io/) for your newly created collection
1042+
with your contract address, or with the name that you chose.
1043+
<br/>
10421044
![6_tierNFTs.png](/assets/lessons/3/6_tierNFTs.png)
10431045

10441046
Of course we already have a couple up there, but you will be able to
10451047
view the three NFTs of your own, which you so diligently minted. You're an artist!
1048+
Now let's see what you have learned along the way with a little quiz.
1049+
<br/><br/>
10461050

10471051
<Quiz quiz="quiz-lesson-3"/>
10481052

1053+
<br/><br/>
1054+
How did you enjoy that? We hope you had fun. And what's next? We're going to bring your
1055+
dev skills to the level - you ain't seen nothin' yet! We're **goin' a testin'** together. Building
1056+
culture in web3 is the substrate for the infrastructure we create, and learning to test
1057+
what we build with real awareness is crucial for creating a safe and sustainable environment. We're
1058+
looking forward to seeing you in our *Write Automated Tests for your TierNFT* project next.
1059+
1060+
In the mean time, jump into the forum and share your experiences with your peers!
1061+
10491062
## Woohoo ✨ Now it’s time to celebrate.
1063+
<br/><br/>
1064+
1065+
import { ContributorFooter } from '../../../components/mdx/ContributorFooter'
1066+
1067+
<ContributorFooter
1068+
authors={['meowy', '_7i7o', 'piablo']}
1069+
reviewers={['georgemac510', 'piablo']}
1070+
contributors={['mveve']}
1071+
/>

0 commit comments

Comments
 (0)