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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -510,7 +510,7 @@ Let's break down our changes in the code:
510
510
511
511
- Added an `import` before our contract definition
512
512
- Inherited `AccessControl` in our contract definition
513
-
- Created a `bytes32 public constant` variable for the minter role
513
+
- Created a `bytes32 public constant` variable for the minter role. The irreversible `keccak256` hash ensures security and prevents unintended changes to the role. As a fixed-size of 32 bytes, it is efficiently storable, and will incur minimal gas consumption.
514
514
- Inside our `constructor`:
515
515
- Granted the `DEFAULT_ADMIN_ROLE` to the contract deployer to be able to grant
516
516
roles to others. Our contract inherits this by default from Access Control as the starting point for all admin roles.
@@ -621,7 +621,7 @@ to ask our community for help by explaining your error, the console output and
621
621
your configuration (OS, version, Foundry and Solidity version, etc.)
622
622
623
623
624
-
{/*<SideDrawer
624
+
<SideDrawer
625
625
buttonText="Checkpoint Questions"
626
626
title="Defining permissions for use of our contract"
627
627
>
@@ -630,7 +630,7 @@ your configuration (OS, version, Foundry and Solidity version, etc.)
630
630
<Questionquestion="lesson-6/4-define-roles/Q3" />
631
631
<Questionquestion="lesson-6/4-define-roles/Q4" />
632
632
<Questionquestion="lesson-6/4-define-roles/Q5" />
633
-
</SideDrawer>*/}
633
+
</SideDrawer>
634
634
635
635
### Register your house in the Real Estate Register
636
636
@@ -802,7 +802,7 @@ the tool tells us the address of the deployed contract:
802
802
`0xec870005029ED5595F146f6AAAe699b442065b72`.
803
803
804
804
805
-
{/*<SideDrawer
805
+
<SideDrawer
806
806
buttonText="Checkpoint Questions"
807
807
title="Deploying with Foundry"
808
808
>
@@ -811,7 +811,7 @@ the tool tells us the address of the deployed contract:
0 commit comments