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
Copy file name to clipboardExpand all lines: src/pages/lessons/projects/6.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,8 +134,7 @@ You can check the details in the full EIP-20 titled
134
134
## Let's code, but first...
135
135
136
136
Before we start hacking away without any structure to follow, what is our actual
137
-
project's structure, and what do we want to achieve? Since we are _BUIDLING_, I'd like to think of our project, or smart contract,
138
-
the same way as we would _roughly_ build a house:
137
+
project's structure, and what do we want to achieve? Since we are _BUIDLING_, I'd like to think of our project, or smart contract, roughly the same way as we would build a house:
139
138
140
139
* 1 - Foundations
141
140
* 2 - Structure: Framing, Walls and Roof
@@ -196,7 +195,7 @@ If everything goes well, you will have four tools to run in the console:
196
195
`forge`, `cast`, `anvil` & `chisel`. Basic overview of each tool:
197
196
198
197
-`forge` tests, builds and deploys your smart contracts
199
-
-`cast`an make smart contract calls, send transactions, or retrieve any type
198
+
-`cast`can make smart contract calls, send transactions, or retrieve any type
200
199
of chain data
201
200
-`anvil` is a local testnet node shipped with Foundry. You can use it for
202
201
testing your contracts from frontends or for interacting over RPC
@@ -407,7 +406,7 @@ the house.
407
406
408
407
We can think of entering the house as `minting` new tokens or increasing the
409
408
total supply, and leaving the house as `burning` tokens or decreasing the total
410
-
supply. But this doors doesn't exist in our contract just yet.
409
+
supply. But these doors don't exist in our contract just yet.
411
410
412
411
<Calloutemoji='💡'size='md'variant='info'>
413
412
@@ -513,6 +512,7 @@ Let's break down our changes in the code:
513
512
- Inside our `constructor`:
514
513
- Granted the `DEFAULT_ADMIN_ROLE` to contract deployer to be able to grant
515
514
roles to others
515
+
{/*is a part of Access control by default - i.e. it is inherited starting admim role for all roles */}
516
516
- Granted the `MINTER_ROLE` to contract deployer to be able to mint tokens
517
517
- Added the modifier `onlyRole(MINTER_ROLE)` to the `mint` function to restrict
0 commit comments