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
To begin our project, we should open a console (command line interface). Check your Operating System
91
+
To begin our project, we should open a command line interface, a.k.a. console. Check your Operating System
92
92
options on how to use one below. We will be using `npm`, the package manager from Node, and its command `npx`that allows us to run or execute a package or one of its scripts. If you are
93
93
comfortable with another package manager, feel free to use it.
94
94
95
95
PLEASE HELP ME FIND CLI-LESSON PATH FOR SIDE-DRAWER COMPONENT:
96
-
<SideDrawertitle=""buttonText="Getting Started with the command line interface">
96
+
<SideDrawertitle=""buttonText="Getting Started with the Command Line Interface">
97
97
<InstallNpm/>
98
98
</SideDrawer>
99
99
<SideDrawertitle=""buttonText="How to install NPM on your system">
@@ -483,7 +483,7 @@ What have we done?
483
483
484
484
Internally, when someone needs to consult an NFT's info, they call the
485
485
OpenZeppelin's `tokenURI` function. That function only joins the return
486
-
***value*** of our newly`_baseURI`function with the ID of the token requested.
486
+
***value*** of our new`_baseURI`function with the ID of the token requested.
487
487
488
488
With that we can see the power of inheritance and overriding. We can inherit a
489
489
whole set of functionalities and change only what we need to create a different
@@ -504,16 +504,15 @@ and files that we prepared, and move on to the next section.
504
504
- If you want to create your own images and have an NFT of your own, why not take the winding road and learn a little about the standard used to identify NFTs
505
505
and a solution to store files in a decentralized way.
506
506
507
+
PART 5 JSON/IPFS (SEPARATE SIDE DRAWER QUIZ)
507
508
<SideDrawerbuttonText="Assessment of part 4 and prediction of 6"title="Assessment of part 4 and prediction of 6">
508
509
<Questionquestion="lesson-2/4-nft-id/Q1" />
509
510
<Questionquestion="lesson-2/4-nft-id/Q2" />
510
511
<Questionquestion="lesson-2/4-nft-id/Q3" />
511
512
<Questionquestion="lesson-2/4-nft-id/Q4" />
512
513
<Questionquestion="lesson-2/4-nft-id/Q5" />
513
514
</SideDrawer>
514
-
<br/>
515
515
516
-
PART 5 JSON/IPFS (SEPARATE SIDE DRAWER QUIZ)
517
516
518
517
<SideDrawerbuttonText="Longer Path (learn about JSON and IPFS)">
519
518
## JSON
@@ -662,24 +661,24 @@ PART 6 SCRIPTS AND COMPILE
662
661
663
662
You might remember this from the previous project, when we used Remix. Once we
664
663
have our contract ready, we can compile and deploy. In Remix, we had a bunch of
665
-
buttons in the web interface, but now we are getting pro, a.k.a. doing it all
666
-
ourselves, with the console.
664
+
buttons in the web interface, but now we are going pro, a.k.a. doing it all
665
+
ourselves in the console.
667
666
668
-
Why did we deviate from Solidity? Because of the way we set our contract up.
669
-
When we deploy we tell our contract where our files are stored. Therefore we had
667
+
Why are we deviating from Solidity? Because of the way we set our contract up.
668
+
When we deploy, we tell our contract where our files are stored. Therefore we have
670
669
to store the files somewhere to get the address we need to run the deployment.
671
670
672
671
So, now that we have our media and JSONs uploaded, we can deploy our NFT
673
672
contract!
674
673
675
674

676
675
677
-
Remember that scripts folder at the beginning of our project? That's where we
676
+
Remember the scripts folder at the beginning of our project? That's where we
678
677
are going to create our script to tell Hardhat the set of instructions to
679
678
follow. We can create one for deploy, another one to mint or call functions of
680
-
our contract. Hardhat uses javascript for this.
679
+
our contract. Hardhat uses Javascript for this.
681
680
682
-
So, let's create a `deploy.js` under the `scripts/` folder and copy this code:
681
+
So, let's create a `deploy.js` under the `scripts/` folder and copy this in:
683
682
684
683
```jsx
685
684
// import Hardhat to use it inside our script
@@ -791,7 +790,7 @@ Let's run the script again and see what it tells us! Here's my output:
We got the URI of the token, right? So, now we know we can deploy it (and mint)
793
+
We got the URI of the token, right? So, now we know we can deploy it, and mint
795
794
to a real blockchain!
796
795
797
796
<SideDrawerbuttonText="Assessment of part 6 and prediction of 7"title="Assessment of part 6 and prediction of 7">
@@ -962,4 +961,12 @@ But first, we want you to go and 'touch some grass'. So why don't you scroll to
962
961
<br/>
963
962
964
963
Congratulations on your results. You're now a supreme open-sourcerer! See you in the next lesson, where you will be adding to your knowledge of creating ERC721s, by creating *tiered NFTs*. See you there....
0 commit comments