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
Notice that ‘Compiled 11 Solidity files successfully’? But we only wrote 1
767
-
Solidity file!
768
-
769
-
Well, we are actually inheriting some of OpenZeppelin's implementations, so the
766
+
Notice that it ‘Compiled 10 Solidity files successfully’, but we only wrote 1
767
+
Solidity file! Well, we are actually inheriting some of OpenZeppelin's implementations, so the
770
768
compiler also has to process everything we are importing in our contract.
771
769
772
770
Since we are in a development environment, Hardhat provides us with the tools to
@@ -820,7 +818,9 @@ For us to get our contract out of our computers and into the real world, we are
820
818
going to run the deploy again, but this time to a testnet.
821
819
822
820
What is a testnet? It is a basically a whole running blockchain, but it runs
823
-
only so people can try stuff out. On it, you have ETH, NFTs, other tokens, etc but they have no monetary value. This way, you can develop and test your contracts without fear of losing anything valuable. For the moment, we are choosing to do this on *Sepolia*. It's one of the many of Ethereum testnets.
821
+
only so people can try stuff out. On it, you have ETH, NFTs, or other tokens but they have no monetary value. This way, you can develop and test your contracts without fear of losing anything valuable. For the moment, we are choosing to do this on *Goerli** testnet. It's one of the many of Ethereum testnets.
822
+
823
+
* We had wanted to use the Sepolia testnet, because Goerli is going to be deprecated by the end of 2023, but we're temporarily restricted, because there isn't yet a compatible NFT test hosting site for Sepolia. We will update the lesson accordingly when this availability arrives.
824
824
825
825
Before we go any further, let's take an extra step for precaution. In the
826
826
next project we'll learn how to use collaborative tools to store
@@ -833,13 +833,14 @@ hardhat.config.js
833
833
834
834
In order to deploy to a real testnet we'll need:
835
835
836
-
- An Ethereum wallet that can connect to Sepolia
836
+
- An Ethereum wallet that can connect to Goerli
837
837
[Metamask](https://metamask.io/) is often used
838
-
- Some Sepolia-ETH. You can ask for some in a faucet, it's free, although
839
-
some are faster than others! Options: [#1](https://faucet.sepolia.dev/),
- A minor change in the Hardhat configuration file
844
845
845
846
First and foremost, **security**. We are exploring new grounds, experimenting,
@@ -865,7 +866,7 @@ blockchain network. Once you have your wallet funded with test ETH, you'll need
865
866
Ethereum RPC Node Providers. Alchemy and Infura are the most used. And Ankr has a 'community endpoint' which doesn't require a dedicated sign up, to list a few options.
866
867
867
868
After signing up, you'll be asked to create an App. Be sure to select the
868
-
Sepolia network there. When the app is created, you'll see a 'View Key' button, or similar. Press it
869
+
Goerli network there. When the app is created, you'll see a 'View Key' button, or similar. Press it
869
870
and copy the HTTP link, we'll use it in our next step.
870
871
871
872
With our wallet funded fake ETH, we can go ahead and change our
Ok. We are ready, let's deploy to the Sepolia testnet!
926
+
Ok. We are ready, let's deploy to the Goerli testnet!
925
927
926
928
Now we need to run our deploy.js script and the deployment is going to cost us
927
929
some ETH - test ETH, don't worry - from our wallet, since we are storing
@@ -933,7 +935,7 @@ deploy, delete all the lines we added to test the minting.
933
935
Run:
934
936
935
937
```bash
936
-
npx hardhat run scripts/deploy.js --network sepolia
938
+
npx hardhat run scripts/deploy.js --network goerli
937
939
```
938
940
939
941
This is the output i got in my console:
@@ -947,25 +949,26 @@ Now that we have run the deploy script, **delete the private key and the RPC API
947
949
key from `hardhat.config.js`** to minimize the handling of the wallet. In the next
948
950
project we will learn about tools to collaborate and store your projects online.
949
951
952
+
950
953
So now we can go and explore the chain to find your contract (and mine too!).
951
-
Just go to [Sepolia Etherscan](https://sepolia.etherscan.io/) (or
954
+
Just go to [Goerli Etherscan](https://goerli.etherscan.io/) (or
952
955
[Opensea](https://testnets.opensea.io/)) and search for the address of our
953
956
deployed contract.
954
957
955
-
You can view my links as an example on [Sepolia Etherscan](https://sepolia.etherscan.io/address/0xc2c2Ae7Ba222384352ED022D8D1b53Ee7edc52AB)
958
+
You can view my links as an example on [Etherscan](https://goerli.etherscan.io/address/0x166A82F7cD8F7BA9D8C10b2cc792C1A20084564d)
956
959
and [Opensea](https://testnets.opensea.io/collection/d-d-academy)
957
960
958
961

959
962
960
-
Wow, you have created your own NFT collection from scratch. What a superstar! You have learned tonnes of new concepts and code - that is really impressive! And now you're almost ready to test yourself a little bit more.
963
+
Wow, you have created your own NFT collection from scratch. What a superstar! You have learned tonnes of new concepts and code - that is really impressive. And now you're almost ready to test yourself a little bit more.
961
964
962
965
But first, we want you to breathe and enjoy. So go and 'touch some grass', and when you come back after your well earned rest, take the quiz. <br/>
963
966
964
967
<br/>
965
968
<Quizquiz="lesson-2-quiz" />
966
969
<br/>
967
970
968
-
Congratulations on your results. You're now a supreme open-sourcerer! In the next lesson*tiered NFTs*, you will be building on top of what you did here, adding more functionality to your contracts and to your knowledge of creating ERC721s. After that we'll be doing some automated testing, and to wrap up, we'll be connecting everything up to a front end, so a user can easily interact with your creations. Lots of fun in the pipeline! See you in the next one and in our community [developerdao.peeranha.io](https://developerdao.peeranha.io)!
971
+
Congratulations on your results. You're now a supreme open-sourcerer! In the next lesson, *TierNFTs*, you will be building on top of what you did here, adding more functionality to your contracts and to your knowledge of creating ERC721s. In the project after that, you'll be creating automated tests for your smart contracts. And to tie everything together, you'll be building a front end, so a user can easily interact with your creations. Lots of fun in the pipeline! See you in the next one and in our community [developerdao.peeranha.io](https://developerdao.peeranha.io)!
0 commit comments