Skip to content

Commit 463de99

Browse files
committed
add sidedrawers and callouts
1 parent 911fbcf commit 463de99

File tree

1 file changed

+25
-12
lines changed
  • pages/lessons/projects

1 file changed

+25
-12
lines changed

pages/lessons/projects/6.mdx

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,13 @@ We can think of entering the house as `minting` new tokens or increasing the
382382
total supply, and leaving the house as `burning` tokens or decreasing the total
383383
supply. But this doors doesn't exist in our contract just yet.
384384

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>
388392

389393
We need to create public facing functions to achieve this:
390394

@@ -680,13 +684,17 @@ My output:
680684
Now we can use this value when we need to deploy. To deploy our contract we will
681685
use the `forge create` tool.
682686

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>
690698

691699
Notice aside, this is the command we can use to finally deploy our contract:
692700

@@ -697,8 +705,13 @@ forge create src/MyToken.sol:MyToken \
697705
--private-key $RAW_PRIVATE_KEY
698706
```
699707

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+
702715

703716
Do you see how we used the value that `cast` gave us as a parameter after the
704717
`--constructor-args` modifier? We are passing down arguments to our solidity

0 commit comments

Comments
 (0)