@@ -382,9 +382,13 @@ We can think of entering the house as `minting` new tokens or increasing the
382
382
total supply, and leaving the house as ` burning ` tokens or decreasing the total
383
383
supply. But this doors doesn't exist in our contract just yet.
384
384
385
- > If you are planning on leaving a fixed total supply like the ` initialSupply ` we
386
- > used recently, that's also a valid approach and you don't need to create a
387
- > ` mint ` or ` burn ` function.
385
+ <Callout emoji = ' 💡' size = ' md' variant = ' info' >
386
+
387
+ If you are planning on leaving a fixed total supply like the ` initialSupply ` we
388
+ used recently, that's also a valid approach and you don't need to create a
389
+ ` mint ` or ` burn ` function.
390
+
391
+ </Callout >
388
392
389
393
We need to create public facing functions to achieve this:
390
394
@@ -680,13 +684,17 @@ My output:
680
684
Now we can use this value when we need to deploy. To deploy our contract we will
681
685
use the ` forge create ` tool.
682
686
683
- > We ** don't** have to copy our private key in the command! That's one of the
684
- > reasons to use the ` .env ` file: we know exactly where our private key is and
685
- > we are responsible to not publish this file anywhere. We can even delete it
686
- > after we deploy the contract.
687
- > If you write your private key in a command on the terminal, all the things you
688
- > type in the terminal get stored in the terminal's history, which could be in a
689
- > publicly accesible file in your computer. That's why we are using an env file.
687
+ <Callout emoji = ' ⚠️' size = ' md' variant = ' info' >
688
+
689
+ We ** don't** have to copy our private key in the command! That's one of the
690
+ reasons to use the ` .env ` file: we know exactly where our private key is and
691
+ we are responsible to not publish this file anywhere. We can even delete it
692
+ after we deploy the contract.
693
+ If you write your private key in a command on the terminal, all the things you
694
+ type in the terminal get stored in the terminal's history, which could be in a
695
+ publicly accesible file in your computer. That's why we are using an ` .env ` file.
696
+
697
+ </Callout >
690
698
691
699
Notice aside, this is the command we can use to finally deploy our contract:
692
700
@@ -697,8 +705,13 @@ forge create src/MyToken.sol:MyToken \
697
705
--private-key $RAW_PRIVATE_KEY
698
706
```
699
707
700
- > Remember that if you used a different name for your token and your ` .sol `
701
- > file, you'll need to adjust this command.
708
+ <Callout emoji = ' 💡' size = ' md' variant = ' info' >
709
+
710
+ Remember that if you used a different name for your token and your ` .sol `
711
+ file, you'll need to adjust this command.
712
+
713
+ </Callout >
714
+
702
715
703
716
Do you see how we used the value that ` cast ` gave us as a parameter after the
704
717
` --constructor-args ` modifier? We are passing down arguments to our solidity
0 commit comments