File tree Expand file tree Collapse file tree 6 files changed +20
-26
lines changed Expand file tree Collapse file tree 6 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,14 @@ you have all the Hardhat dependencies installed.
61
61
Otherwise let's create a new Hardhat project and copy in the contract which
62
62
we'll be testing.
63
63
64
+ { /* DO WE NEED TO MAKE SURE WE HAVE THE MOST RECENT VERSION OF NPM? LET'S SEE IF THERE'S IMPROVEMENT */ }
65
+
64
66
To create a new project, please refer to _ Lesson 3 - Tier NFTs_ and search for
65
67
the “First things first 👷♂️" section to get your project going. Follow the steps
66
68
until "Let’s start coding”, then open up your code editor.
67
69
70
+ { /* AND DO WE NEED TO ENSURE LEARNERS ACTUALLY FINISH ALL THE STEPS IN LESSON 3 FOR hardhat configurations, deployment variables, etc */ }
71
+
68
72
_ If you are using VSCode, type ` code . ` in your terminal to open VSCode._
69
73
70
74
After running through that section you'll have a working Hardhat project for the
@@ -210,7 +214,7 @@ module.exports = {
210
214
solidity: ' 0.8.12' ,
211
215
}
212
216
```
213
- <SideDrawer buttonText = " Checkpoint Questions" title = " Setting up our Environment" >
217
+ <SideDrawer buttonText = " Checkpoint Questions" title = " Understanding our Environment" >
214
218
<Question question = " lesson-4/2-get-set-up/Q1" />
215
219
<Question question = " lesson-4/2-get-set-up/Q2" />
216
220
<Question question = " lesson-4/2-get-set-up/Q3" />
Original file line number Diff line number Diff line change 1
1
{
2
- "question" : " " ,
2
+ "question" : " Choose reasons for using automated tests: " ,
3
3
"options" : [
4
4
{
5
- "answer" : " " ,
5
+ "answer" : " Give us insurance if we upgrade code later " ,
6
6
"correct" : true
7
7
},
8
8
{
9
- "answer" : " "
9
+ "answer" : " So we don’t have to use manual tests "
10
10
},
11
11
{
12
- "answer" : " " ,
12
+ "answer" : " Give us the chance to utilise code modularly " ,
13
13
"correct" : true
14
- },
15
- {
16
- "answer" : " "
17
- },
18
- {
19
- "answer" : " "
20
14
}
21
15
]
22
16
}
Original file line number Diff line number Diff line change 1
1
{
2
- "question" : " " ,
2
+ "question" : " What do you imagine one of the first steps is in this lesson? " ,
3
3
"options" : [
4
4
{
5
- "answer" : " " ,
6
- "correct" : true
7
- },
8
- {
9
- "answer" : " "
5
+ "answer" : " Add your private key to the .gitignore file!"
10
6
},
11
7
{
12
- "answer" : " " ,
8
+ "answer" : " Harmonise Solidity versions across the project " ,
13
9
"correct" : true
14
10
},
15
11
{
16
- "answer" : " "
12
+ "answer" : " Add a new line of code to the contract to signal we can test it "
17
13
},
18
14
{
19
- "answer" : " "
15
+ "answer" : " Add a console.log line to the contract code so we can see the output of the tests "
20
16
}
21
17
]
22
18
}
Original file line number Diff line number Diff line change 8
8
"answer" : " Help write more modular code"
9
9
},
10
10
{
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"
15
12
},
16
13
{
17
14
"answer" : " All of the above" ,
18
15
"correct" : true
16
+ },
17
+ {
18
+ "answer" : " Only a) and c)"
19
19
}
20
20
]
21
21
}
Original file line number Diff line number Diff line change 2
2
"question" : " Why should we verify the Solidity version in the hardhat.config.js file?" ,
3
3
"options" : [
4
4
{
5
- "answer" : " To check for any updates to the Solidity version"
5
+ "answer" : " So it can check for any updates to the Solidity version"
6
6
},
7
7
{
8
8
"answer" : " To ensure compatibility with the contract being tested." ,
Original file line number Diff line number Diff line change 1
1
{
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?" ,
3
3
"options" : [
4
4
{
5
5
"answer" : " Testing the mint() function, because if the network is down, we won't see the tokens on a marketplace"
You can’t perform that action at this time.
0 commit comments