Skip to content

Commit 2ee506f

Browse files
committed
Add more questions, fix some review recommendations
1 parent 75626da commit 2ee506f

File tree

6 files changed

+20
-26
lines changed

6 files changed

+20
-26
lines changed

pages/lessons/projects/4.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ you have all the Hardhat dependencies installed.
6161
Otherwise let's create a new Hardhat project and copy in the contract which
6262
we'll be testing.
6363

64+
{/* DO WE NEED TO MAKE SURE WE HAVE THE MOST RECENT VERSION OF NPM? LET'S SEE IF THERE'S IMPROVEMENT */}
65+
6466
To create a new project, please refer to _Lesson 3 - Tier NFTs_ and search for
6567
the “First things first 👷‍♂️" section to get your project going. Follow the steps
6668
until "Let’s start coding”, then open up your code editor.
6769

70+
{/* AND DO WE NEED TO ENSURE LEARNERS ACTUALLY FINISH ALL THE STEPS IN LESSON 3 FOR hardhat configurations, deployment variables, etc */}
71+
6872
_If you are using VSCode, type `code .` in your terminal to open VSCode._
6973

7074
After running through that section you'll have a working Hardhat project for the
@@ -210,7 +214,7 @@ module.exports = {
210214
solidity: '0.8.12',
211215
}
212216
```
213-
<SideDrawer buttonText="Checkpoint Questions" title="Setting up our Environment">
217+
<SideDrawer buttonText="Checkpoint Questions" title="Understanding our Environment">
214218
<Question question="lesson-4/2-get-set-up/Q1" />
215219
<Question question="lesson-4/2-get-set-up/Q2" />
216220
<Question question="lesson-4/2-get-set-up/Q3" />
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
{
2-
"question": "",
2+
"question": "Choose reasons for using automated tests:",
33
"options": [
44
{
5-
"answer": "",
5+
"answer": "Give us insurance if we upgrade code later ",
66
"correct": true
77
},
88
{
9-
"answer": ""
9+
"answer": "So we don’t have to use manual tests"
1010
},
1111
{
12-
"answer": "",
12+
"answer": "Give us the chance to utilise code modularly",
1313
"correct": true
14-
},
15-
{
16-
"answer": ""
17-
},
18-
{
19-
"answer": ""
2014
}
2115
]
2216
}
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{
2-
"question": "",
2+
"question": "What do you imagine one of the first steps is in this lesson?",
33
"options": [
44
{
5-
"answer": "",
6-
"correct": true
7-
},
8-
{
9-
"answer": ""
5+
"answer": "Add your private key to the .gitignore file!"
106
},
117
{
12-
"answer": "",
8+
"answer": "Harmonise Solidity versions across the project",
139
"correct": true
1410
},
1511
{
16-
"answer": ""
12+
"answer": "Add a new line of code to the contract to signal we can test it"
1713
},
1814
{
19-
"answer": ""
15+
"answer": "Add a console.log line to the contract code so we can see the output of the tests"
2016
}
2117
]
2218
}

utils/questions/lesson-4/2-get-set-up/Q1.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"answer": "Help write more modular code"
99
},
1010
{
11-
"answer": "Ensure code doesn't break when changes are made"
12-
},
13-
{
14-
"answer": "Only a) and c)"
11+
"answer": "Ensure a fixed bug stays fixed"
1512
},
1613
{
1714
"answer": "All of the above",
1815
"correct": true
16+
},
17+
{
18+
"answer": "Only a) and c)"
1919
}
2020
]
2121
}

utils/questions/lesson-4/2-get-set-up/Q4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"question": "Why should we verify the Solidity version in the hardhat.config.js file?",
33
"options": [
44
{
5-
"answer": " To check for any updates to the Solidity version"
5+
"answer": "So it can check for any updates to the Solidity version"
66
},
77
{
88
"answer": "To ensure compatibility with the contract being tested.",

utils/questions/lesson-4/2-get-set-up/Q5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"question": "Which part of the contract do you think will present us with some extra work to do?",
2+
"question": "Which part of the contract do you think will present us with some extra work?",
33
"options": [
44
{
55
"answer": "Testing the mint() function, because if the network is down, we won't see the tokens on a marketplace"

0 commit comments

Comments
 (0)