@@ -607,13 +607,13 @@ property rights. We can think of this as deploying our contract to a blockchain,
607
607
where our token will be fully functioning for every address that wants to
608
608
interact with it.
609
609
610
- We are going to need a small amount of Goerli ETH to be able to pay for the
611
- transaction to deploy our contract. If you already have some Test ETH in Goerli ,
610
+ We are going to need a small amount of Sepolia ETH to be able to pay for the
611
+ transaction to deploy our contract. If you already have some Test ETH in Sepolia ,
612
612
you can continue, if you don't you can always ask for some in the many faucets
613
- that are online. Some options are: [ Alchemy] ( https://goerlifaucet .com/ ) ,
614
- [ Goerli Faucet] ( https://goerlifaucet.org / ) or
615
- [ Paradigm ] ( https://faucet.paradigm.xyz/ ) , but you can find more if you search
616
- for Goerli Faucet in any search engine.
613
+ that are online. Some options are: [ Alchemy] ( https://sepoliafaucet .com/ ) ,
614
+ [ Sepolia Faucet] ( https://testnet-faucet.com/sepolia / ) or
615
+ [ Quicknode ] ( https://faucet.quicknode.com/ethereum/sepolia ) , but you can find more if you search
616
+ for Sepolia Faucet in any search engine.
617
617
618
618
We are going to create an ` .env ` file, where we will store our _ secrets_ . And
619
619
when we mean _ secrets_ , we are specially referring to the private key to your
@@ -630,8 +630,8 @@ project's root folder called `.env` and we should fill it with this:
630
630
631
631
``` env
632
632
RAW_PRIVATE_KEY=REPLACE_THIS_VALUE_WITH_YOUR_PRIVATE_KEY
633
- ETH_RPC_URL=https://rpc.ankr.com/eth_goerli
634
- CHAIN=goerli
633
+ ETH_RPC_URL=https://rpc.ankr.com/eth_sepolia
634
+ CHAIN=sepolia
635
635
ETHERSCAN_API_KEY=REPLACE_WITH_ETHERSCAN_API_KEY
636
636
```
637
637
@@ -649,7 +649,7 @@ Overview of our values:
649
649
one but you can use your Infura, Alchemy, Quicknode or whatever provider you
650
650
prefer
651
651
- ** CHAIN** : The blockchain where we will be deploying out contract. We are using
652
- the goerli testnet since this is not intended to be on mainnet.
652
+ the Sepolia testnet since this is not intended to be on mainnet.
653
653
- ** ETHERSCAN_API_KEY** : Here we will use our Etherscan API KEY so we can verify
654
654
our contract for everyone to see the deployed code and foster transparency in
655
655
the web3 space.
@@ -738,22 +738,22 @@ the tool will return an error when trying to verify.
738
738
This is the output I got:
739
739
740
740
``` less
741
- [⠢ ] Compiling...
741
+ [⠒ ] Compiling...
742
742
No files changed, compilation skipped
743
-
744
- Deployer: 0 xC53128eAe55d64C2bD70F842247a0E8D27647241
745
- Deployed to: 0 x2778aB7e31C56B73F4d83ABb265c0bEcA8A0655a
746
- Transaction hash: 0 xef9dfa70fa3cc6c5f5f994f00ac46f6c343f378b2135d80b34c6e56bd5f7036e
743
+ Deployer: 0 xf4bAFA90241e808461653C17dB0f8669Fa4342a1
744
+ Deployed to: 0 xCE68eD7AEd9A1c6C185f2B8b576e7cBD7bf5dAAf
745
+ Transaction hash: 0 xeb420acc65f54fc3a564db28856e4496acb59615f837d784c75a9c00a0bb96d4
747
746
Starting contract verification...
748
747
Waiting for etherscan to detect contract deployment...
749
- Start verifying contract `0 x2778ab7e31c56b73f4d83abb265c0beca8a0655a` deployed on goerli
748
+ Start verifying contract `0 xCE68eD7AEd9A1c6C185f2B8b576e7cBD7bf5dAAf` deployed on sepolia
749
+
750
+ Submitting verification for [src/ MyToken.sol :MyToken] " 0xCE68eD7AEd9A1c6C185f2B8b576e7cBD7bf5dAAf" .
750
751
751
- Submitting verification for [src/ MyToken.sol :MyToken] " 0x2778aB7e31C56B73F4d83ABb265c0bEcA8A0655a" .
752
752
Submitted contract for verification:
753
753
Response: `OK`
754
- GUID: `6 mfsxsqsbau8rfsdtmisn2ihq5wh568mr9myxbbgcf66hcspbv `
754
+ GUID: `fn91mxzy58kyjw5ps1tjid2jtulktj8zhdx583pxbfekthb5jm `
755
755
URL:
756
- https:// goerli .etherscan.io/address/0x2778ab7e31c56b73f4d83abb265c0beca8a0655a
756
+ https:// sepolia .etherscan.io/address/0xce68ed7aed9a1c6c185f2b8b576e7cbd7bf5daaf
757
757
Contract verification status:
758
758
Response: `NOTOK`
759
759
Details : `Pending in queue`
@@ -765,17 +765,17 @@ Contract successfully verified
765
765
766
766
If we filter out all information, we can pay attention to the second line, where
767
767
the tool tells us what is the address of the deployed contract:
768
- ` 0x2778aB7e31C56B73F4d83ABb265c0bEcA8A0655a ` .
768
+ ` 0xCE68eD7AEd9A1c6C185f2B8b576e7cBD7bf5dAAf ` .
769
769
770
- You can go into [ Goerli Etherscan] ( https://goerli .etherscan.io/ ) block explorer
770
+ You can go into [ Sepolia Etherscan] ( https://sepolia .etherscan.io/ ) block explorer
771
771
and search for this address that the command returned to check out your very own
772
772
newly deployed smart contract!
773
773
774
774
![ ERC20.etherscan] ( /assets/lessons/6/ERC20.etherscan.png )
775
775
776
776
If you got to verify it, it also gives you a link to see your contract on the
777
777
block explorer, in our case it's the last line the _ Submitted contract for
778
- verification_ section: [ Goerli Etherscan] ( https://goerli .etherscan.io/address/0x2778ab7e31c56b73f4d83abb265c0beca8a0655a ) ** and** you get to see the code for
778
+ verification_ section: [ Sepolia Etherscan] ( https://sepolia .etherscan.io/address/0xce68ed7aed9a1c6c185f2b8b576e7cbd7bf5daaf ) ** and** you get to see the code for
779
779
the contract and all it's libraries right there in the tab named _ Contract_ with
780
780
a green checkmark.
781
781
@@ -800,7 +800,7 @@ our decimals in 18, that would be exactly 1000 MTK.
800
800
801
801
## Invite your frens!
802
802
803
- That's it! We deployed our contract on the Goerli testnet, and our token should
803
+ That's it! We deployed our contract on the Sepolia testnet, and our token should
804
804
be live and kicking.
805
805
806
806
Now that we have built our house and it's has been accepted in the real estate
0 commit comments