Skip to content

Commit 6184f1d

Browse files
fix: description and hint text (#104)
* fix: adjust "Learn Digital Ledgers By Building a Blockchain" description and test text * fix: adjust "Learn Proof of Work Consensus by Building a Block Mining Algorithm" description and hint text
1 parent a9828ed commit 6184f1d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

curriculum/locales/english/learn-digital-ledgers-by-building-a-blockchain.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ Open your new `validate-chain.js` file and import the `isValidChain` function yo
16461646
16471647
### --tests--
16481648
1649-
You should have `import { isValidChain } from 'blockchain-helpers.js'` at the top of your `validate-chain.js` file
1649+
You should have `import { isValidChain } from './blockchain-helpers.js'` at the top of your `validate-chain.js` file
16501650
16511651
```js
16521652
await new Promise(res => setTimeout(res, 1000));
@@ -2609,7 +2609,7 @@ assert.match(lastOutput, /Chain is valid/);
26092609
26102610
### --description--
26112611
2612-
Transactions aren't stored usually stored on the blockchain right away, they go into a waiting area known as a transaction pool until a new block is added. You will create this next. In your `blockchain-helpers.js` export a new `writeTransactions` function. Give it a parameter of `transactions` and leave the function empty to start.
2612+
Transactions aren't usually stored on the blockchain right away they go into a waiting area known as a transaction pool until a new block is added. You will create this next. In your `blockchain-helpers.js` export a new `writeTransactions` function. Give it a parameter of `transactions` and leave the function empty to start.
26132613

26142614
### --tests--
26152615

@@ -2793,7 +2793,7 @@ At the top of your new file, import the `writeTransactions` function you created
27932793
27942794
### --tests--
27952795
2796-
You should have `import { writeTransactions } from 'blockchain-helpers.js';` in your `add-transaction.js` file
2796+
You should have `import { writeTransactions } from './blockchain-helpers.js';` in your `add-transaction.js` file
27972797
27982798
```js
27992799
await new Promise(res => setTimeout(res, 1000));

curriculum/locales/english/learn-proof-of-work-consensus-by-building-a-block-mining-algorithm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ writeTransactions([]);
13661366

13671367
### --description--
13681368

1369-
You want your `hash` to start with a zero. Create a `while` loop that checks if `!hash.startsWith('0')` and put your `console.log` in the loop.
1369+
You want your `hash` to start with a zero. Create a `while` loop that checks if `!hash.startsWith('0')`. Also, move your `console.log` statement that logs the value of `hash` into the loop.
13701370

13711371
### --tests--
13721372

@@ -5740,7 +5740,7 @@ assert.match(lastOutput, /Chain is valid/);
57405740

57415741
### --description--
57425742

5743-
There's one more thing to do here, make it so you can't send transactions unless you have enough tokens. In the `blockchain-helpers.js` file, export a new `getAddressBalance` function. Have it accept an `address` parameter, and leave the function empty for now.
5743+
There's one more thing to do here: Make it so you can't send transactions unless you have enough tokens. In the `blockchain-helpers.js` file, export a new `getAddressBalance` function. Have it accept an `address` parameter, and leave the function empty for now.
57445744

57455745
### --tests--
57465746

0 commit comments

Comments
 (0)