Skip to content

Commit 14f4b9f

Browse files
committed
round of quiz cleanup and nitpicks
1 parent 3824098 commit 14f4b9f

File tree

8 files changed

+31
-33
lines changed

8 files changed

+31
-33
lines changed

pages/lessons/projects/4.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ it's an important tool to ensuring your contract will work as expected.
6666

6767
### Setting up our project dependencies
6868
If you have an existing project from your previous work on the TierNFT lesson,
69-
you have all the Hardhat dependencies installed. {/* @wolovim , would we need to comment out the deployment script if we were to use that 'already set up' project? I mean, would that script give us bother each time we ran the tests in this lesson? */} Otherwise let's create a new Hardhat project and copy in the contract which
69+
you have all the Hardhat dependencies installed. Otherwise let's create a new Hardhat project and copy in the contract which
7070
we'll be testing. To create a new project, please refer to _Lesson 3 - Tier NFTs_ and search for
7171
the “First things first 👷‍♂️" section to get your project going. Follow the steps
7272
until "Let’s start coding”, then open up your code editor. If you are using VSCode, type `code .` in your terminal to open VSCode. After running through that section you'll have a working Hardhat project for the

utils/questions/lesson-4/1-intro/Q1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"question": "Choose the reasons for using automated tests:",
33
"options": [
44
{
5-
"answer": "Give us insurance if we upgrade code later ",
5+
"answer": "Warns of regressions if we upgrade code later",
66
"correct": true
77
},
88
{
99
"answer": "So we don’t have to use manual tests"
1010
},
1111
{
12-
"answer": "Give us the chance to utilise code modularly",
12+
"answer": "Build confidence in each component of our code",
1313
"correct": true
1414
},
1515
{

utils/questions/lesson-4/1-intro/Q2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"question": "What is the role of a Testnet in smart contract development?",
2+
"question": "What is the role of a testnet in smart contract development?",
33
"options": [
44
{
55
"answer": "It helps to deploy smart contracts to the Ethereum mainnet."
66
},
77
{
8-
"answer": "To airdrop free Ether to devs because testing gets the eco-system a good name."
8+
"answer": "To airdrop free Ether to devs, because testing gives the ecosystem a good name."
99
},
1010
{
11-
"answer": "It's used to interact with smart contracts using that real Ether."
11+
"answer": "It's used to interact with smart contracts using real Ether."
1212
},
1313
{
1414
"answer": "It's a network that is used for testing smart contracts.",

utils/questions/lesson-4/1-intro/Q4.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"question": "When writing unit tests for a smart contract, what should we be testing?",
33
"options": [
44
{
5-
"answer": "Functionality that only involves external contracts."
5+
"answer": "Functionality that only involves external contracts"
66
},
77
{
8-
"answer": "Only private functions that aren't externally accessible."
8+
"answer": "Only private functions that aren't externally accessible"
99
},
1010
{
11-
"answer": "All functions and possible edge cases that the contract may encounter.",
11+
"answer": "All functions and possible edge cases that the contract may encounter",
1212
"correct": true
1313
},
1414
{
15-
"answer": "Just the constructor function to ensure the contract gets deployed properly."
15+
"answer": "Just the constructor function to ensure the contract gets deployed properly"
1616
}
1717
]
1818
}

utils/questions/lesson-4/1-intro/Q5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"question": "What do you imagine one of the first steps is in this lesson?",
33
"options": [
44
{
5-
"answer": "To add your private key to the .gitignore file!"
5+
"answer": "To add your private key to the .gitignore file"
66
},
77
{
88
"answer": "To harmonise Solidity versions across the project",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"answer": "Testing the mint() function, because if the network is down, we won't see the tokens on a marketplace"
66
},
77
{
8-
"answer": "Testing constructor() because it inherits from another contract"
8+
"answer": "Testing constructor(), because it inherits from another contract"
99
},
1010
{
11-
"answer": "Testing tokenURI() because the SVG file is in the contract and not in a separate .json file",
11+
"answer": "Testing tokenURI(), because the SVG file is in the contract and not in a separate .json file",
1212
"correct": true
1313
},
1414
{
15-
"answer": "Testing withdraw() because it involves more than one party for a transaction"
15+
"answer": "Testing withdraw(), because it involves more than one party for a transaction"
1616
}
1717
]
1818
}

utils/questions/lesson-4/3-general-concepts/Q2.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"question": "Why is it essential to ensure that tests fail before they pass?",
33
"options": [
44
{
5-
"answer": "To verify that the test environment is set up correctly."
6-
},
7-
{
8-
"answer": "To identify potential bugs in the smart contract code.",
5+
"answer": "To verify that the test environment is configured correctly.",
96
"correct": true
107
},
118
{
@@ -15,7 +12,7 @@
1512
"answer": "To confirm that the contract owner can withdraw funds."
1613
},
1714
{
18-
"answer": "To verify that the test is correctly checking the expected result.",
15+
"answer": "To confirm that your contract is actually being interacted with.",
1916
"correct": true
2017
}
2118
]

utils/quizzes/lesson-4-quiz.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"question": "Choose those which automated testing of smart contracts can help achieve?",
66
"options": [
77
{
8-
"answer": "Faster development and deployment process."
8+
"answer": "Faster deployment process"
99
},
1010
{
11-
"answer": "Finding every possible bug and vulnerability."
11+
"answer": "Finding every possible bug and vulnerability"
1212
},
1313
{
14-
"answer": "Improving the overall code quality.",
14+
"answer": "Improving the overall code quality",
1515
"correct": true
1616
},
1717
{
18-
"answer": "Ensuring the smart contract is free of errors.",
18+
"answer": "Ensuring the smart contract is free of errors",
1919
"correct": true
2020
}
2121
]
@@ -24,31 +24,31 @@
2424
"question": "Which testing approach is recommended for ensuring a secure smart contract?",
2525
"options": [
2626
{
27-
"answer": "Only manual testing with thorough code review."
27+
"answer": "Only manual testing with thorough code review"
2828
},
2929
{
30-
"answer": "Automated testing using unit tests exclusively."
30+
"answer": "Automated testing using unit tests exclusively"
3131
},
3232
{
33-
"answer": "A combination of manual testing, automated testing, and code auditing.",
33+
"answer": "A combination of manual testing, automated testing, and code auditing",
3434
"correct": true
3535
},
3636
{
37-
"answer": "Skipping testing to expedite the deployment process."
37+
"answer": "Skipping testing to expedite the deployment process"
3838
}
3939
]
4040
},
4141
{
4242
"question": "Which three variables did we define with the 'let' keyword to use in our test suite?",
4343
"options": [
4444
{
45-
"answer": "tokenTier, tierID, onlyOwner."
45+
"answer": "tokenTier, tierID, onlyOwner"
4646
},
4747
{
48-
"answer": "symbol, collection, provider."
48+
"answer": "symbol, collection, provider"
4949
},
5050
{
51-
"answer": "otherUser, contract, owner.",
51+
"answer": "otherUser, contract, owner",
5252
"correct": true
5353
}
5454
]
@@ -166,7 +166,7 @@
166166
"answer": "To decrease the number of transactions"
167167
},
168168
{
169-
"answer": "To ensure the correctness and reliability of the smart contract's behavior.",
169+
"answer": "To improve the correctness and reliability of all the smart contract's behavior",
170170
"correct": true
171171
},
172172
{
@@ -196,10 +196,11 @@
196196
"question": "Why is it essential to ensure that tests fail before they pass?",
197197
"options": [
198198
{
199-
"answer": "To verify that the test environment is set up correctly."
199+
"answer": "To verify that the test environment is configured correctly.",
200+
"correct": true
200201
},
201202
{
202-
"answer": "To identify potential bugs in the smart contract code.",
203+
"answer": "To confirm that your contract is actually being interacted with.",
203204
"correct": true
204205
},
205206
{

0 commit comments

Comments
 (0)