Skip to content

Commit e5c943e

Browse files
committed
Revert Sepolia references back to Goerli for NFT hosting capability
1 parent 1619cc1 commit e5c943e

File tree

1 file changed

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

1 file changed

+23
-20
lines changed

pages/lessons/projects/2.mdx

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ going to use them inside our contract.
309309
## Standing on the shoulder of giants
310310

311311
For this we are going to ‘inherit’ (think of _using the properties of_ or
312-
_extending_ for now) the ERC721 contract from OpenZeppelin. Or the same way you
312+
_extending_ for now) the ERC721 contract from OpenZeppelin, or the same way you
313313
_inherit_ the DNA and characteristics from your relatives.
314314

315315
![standing.in.the.shoulder.of.giants.nft.jpeg](/assets/lessons/2/img_5.jpeg)
@@ -763,10 +763,8 @@ This is the output i got:
763763

764764
![deploy.output.png](/assets/lessons/2/img_16.png)
765765

766-
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
770768
compiler also has to process everything we are importing in our contract.
771769

772770
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
820818
going to run the deploy again, but this time to a testnet.
821819

822820
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.
824824

825825
Before we go any further, let's take an extra step for precaution. In the
826826
next project we'll learn how to use collaborative tools to store
@@ -833,13 +833,14 @@ hardhat.config.js
833833

834834
In order to deploy to a real testnet we'll need:
835835

836-
- An Ethereum wallet that can connect to Sepolia
836+
- An Ethereum wallet that can connect to Goerli
837837
[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/),
840-
[#2](https://www.infura.io/faucet/sepolia), [#3](https://faucet.quicknode.com/ethereum/sepolia)
841-
- An API Key from an Ethereum RPC Node Provider e.g. [Infura](https://app.infura.io/),
842-
[Ankr](https://www.ankr.com/rpc/eth/eth_sepolia/), or [Alchemy](https://dashboard.alchemy.com/)
838+
- Some Goerli-ETH. You can ask for some in a faucet, it's free, although
839+
some are faster than others! Options: [#1](https://goerlifaucet.com/),
840+
[#2](https://faucets.chain.link/goerli), [#3](https://faucet.paradigm.xyz/)
841+
- An API Key from an Ethereum RPC Node Provider
842+
([Alchemy](https://www.alchemy.com/), [Infura](https://infura.io/),
843+
[Ankr](https://rpc.ankr.com/eth_goerli))
843844
- A minor change in the Hardhat configuration file
844845

845846
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
865866
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.
866867

867868
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
869870
and copy the HTTP link, we'll use it in our next step.
870871

871872
With our wallet funded fake ETH, we can go ahead and change our
@@ -888,7 +889,7 @@ const RPC_API_KEY = 'YOUR-API-KEY-FROM-INFURA-OR-ALCHEMY'
888889
module.exports = {
889890
solidity: '0.8.12',
890891
networks: {
891-
sepolia: {
892+
goerli: {
892893
url: RPC_API_KEY,
893894
accounts: [WALLET_PRIVATE_KEY],
894895
},
@@ -912,6 +913,7 @@ Please, if you are already a developer and you plan to use Git to store your
912913
project, don't store your `hardhat.config.js` on it, because you will have your
913914
private key there.
914915

916+
915917
<SideDrawer buttonText="Checkpoint Questions" title="Adopting Wise Developer Practices">
916918
<Question question="lesson-2/7-connect-real-world/Q1" />
917919
<Question question="lesson-2/7-connect-real-world/Q2" />
@@ -921,7 +923,7 @@ private key there.
921923
</SideDrawer>
922924
<br/>
923925

924-
Ok. We are ready, let's deploy to the Sepolia testnet!
926+
Ok. We are ready, let's deploy to the Goerli testnet!
925927

926928
Now we need to run our deploy.js script and the deployment is going to cost us
927929
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.
933935
Run:
934936

935937
```bash
936-
npx hardhat run scripts/deploy.js --network sepolia
938+
npx hardhat run scripts/deploy.js --network goerli
937939
```
938940

939941
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
947949
key from `hardhat.config.js`** to minimize the handling of the wallet. In the next
948950
project we will learn about tools to collaborate and store your projects online.
949951

952+
950953
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
952955
[Opensea](https://testnets.opensea.io/)) and search for the address of our
953956
deployed contract.
954957

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)
956959
and [Opensea](https://testnets.opensea.io/collection/d-d-academy)
957960

958961
![opensea.png](/assets/lessons/2/img_20.png)
959962

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.
961964

962965
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/>
963966

964967
<br/>
965968
<Quiz quiz="lesson-2-quiz" />
966969
<br/>
967970

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)!
969972

970973

971974
import { ContributorFooter } from '../../../components/mdx/ContributorFooter'

0 commit comments

Comments
 (0)