Skip to content

Commit ad8f140

Browse files
authored
Merge pull request #182 from omahs/patch-2
Fix: typos
2 parents 59b4989 + 687f654 commit ad8f140

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

pages/lessons/projects/1.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ icons: ['solidity', 'remix']
1212

1313
We’re going to build a **smart contract**, but what on Jupiter is a smart
1414
contract? And what on Earth would we use one for? Well, you wouldn’t find a
15-
smart contract on either Jupiter, or Earth, and although you maybe grounded to
15+
smart contract on either Jupiter, or Earth, and although you may be grounded to
1616
the latter, you are going to deploy yours on a **blockchain**. Not a real
1717
blockchain, well not at first. Hang on!
1818

@@ -25,7 +25,7 @@ and bundled into blocks of a limited capacity and they keep getting added on to
2525
make a continuing _block chain_. Each transaction contains quite a limited
2626
amount of information, but gives us transparency so that anyone can trace the
2727
_money trail_. And this was one of the main intentions of blockchains.
28-
Transparency. There are ever growing use cases for the types of transactions,
28+
Transparency. There are ever-growing use cases for the types of transactions,
2929
financial and non-financial. Let’s move on. The blocks are secured to each other
3030
with cryptography. A similar type of encryption that is used to secure the
3131
Signal or Telegram apps on your smartphone…..(any other examples???) If someone
@@ -54,7 +54,7 @@ resistant. Think about that for a second. And it gets better…..
5454
Really? What’s so special about all of this? Well until recently, we only
5555
transferred data on the internet. Yes, you could send money too by using some
5656
kind of banking app, or financial services app like Western Union, but with the
57-
advent of crypto currencies we can now send _digital_ value… permissionlessly.
57+
advent of cryptocurrencies we can now send _digital_ value… permissionlessly.
5858
That's quite a thing! In the early days of crypto we could only transact with
5959
digital tokens such as BTC and then ETH and soon later, with thousands of
6060
different coins. But new ideas continue to emerge and we’re going to be building
@@ -286,21 +286,21 @@ contract WAGMI {
286286

287287
### Visibility of State Variables
288288

289-
In Solidity , there are 3 types of variable visibility modifiers that a developer can use :
289+
In Solidity, there are 3 types of variable visibility modifiers that a developer can use :
290290

291291
- **Public**: If a state variable visibility is marked as `public` then those variables can be used within the smart contract and can be accessed by other contracts as well. Compilers automatically generates functions to read its value when calling the contract, they are called 'getter' functions.
292292

293-
- **Internal**: A state variable with an `internal` visibility can only be accessed within the smart contract and its derived contracts. It can *NOT* be accessed externally. This is the default for state variables when no visibilty is specified.
293+
- **Internal**: A state variable with an `internal` visibility can only be accessed within the smart contract and its derived contracts. It can *NOT* be accessed externally. This is the default for state variables when no visibility is specified.
294294

295-
- **Private**: When a state variable visibility is marked as `private` it is only meant to be used within the defined smart contract . No derived contract can read a variable with a `private` visibility.
295+
- **Private**: When a state variable visibility is marked as `private` it is only meant to be used within the defined smart contract. No derived contract can read a variable with a `private` visibility.
296296

297297
<Callout emoji='💡' size='md' variant='info'>
298298
While private and internal are not readable or modifiable from other contracts, its values are set on a public blockchain, making its values visible from the outside world.
299299
</Callout>
300300

301-
#### Which visibility should I use ?
301+
#### Which visibility should I use?
302302

303-
A simple answer to this is , start with giving every variable a `private` visibility then as you move further in contract developement modify variables to `internal` visibility as a next step of modification. Try to use `public` visibility as little as possible in order to be gas efficient and making less vulnerabilities in the smart contract.
303+
A simple answer to this is, start by giving every variable a `private` visibility then as you move further in contract development modify variables to `internal` visibility as a next step of modification. Try to use `public` visibility as little as possible in order to be gas efficient and making less vulnerabilities in the smart contract.
304304

305305
</SideDrawer>
306306

@@ -332,7 +332,7 @@ symbols:
332332
// ...
333333
contract WAGMI {
334334
335-
// Don't delete our state variables here !
335+
// Don't delete our state variables here!
336336
337337
function getMessage() public view returns(string memory) {
338338
return message;
@@ -542,7 +542,7 @@ in future lessons, so no worries!
542542

543543
In the Ethereum Blockchain, whenever we run or execute a transaction it stores a log with the results and data of the transaction. Solidity provides us with **Events** so we can write data to said logs.
544544

545-
Applications can subscribe and listen to this events, or even search for past logs using filters.
545+
Applications can subscribe and listen to these events, or even search for past logs using filters.
546546

547547
Whenever a function calls (**emits**) an event, the values passed as parameters are stored in a special data structure in the blockchain: the transaction log. It is worth noticing that Smart Contracts cannot access the log and its event data.
548548

pages/lessons/projects/2.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ delegates to transfer them, etc).
256256
</SideDrawer>
257257

258258
All of it is pretty much for our project, but luckily OpenZeppelin has developed
259-
a lot of contracts that implements these standards and more, they are widely
259+
a lot of contracts that implement these standards and more, they are widely
260260
used and audited and, the thing we love about them, they are open-source and we
261261
can use them to leverage our learning process. With that in our heads, we are
262262
going to use them inside our contract.
@@ -401,7 +401,7 @@ So, to let our inherited contract know where our NFTs will be stored, we have to
401401
you look into OpenZeppelin's documentation. There’s a good reason for
402402
everything. Well, lots of things. And this is one of them!
403403

404-
Here's the modifications we will add and i'll explain them below:
404+
Here's the modifications we will add and I'll explain them below:
405405

406406
```solidity
407407
// SPDX-License-Identifier: MIT
@@ -506,7 +506,7 @@ collection to have as NFTs. Each of them will have as a minimum a “name”,
506506

507507
As you see in the example, under “image” we have a link to a file on the web,
508508
which we will refer to as Web2. So, if this website were to go down, our NFTs
509-
would loose their images, showing us the limitations of the centralization of
509+
would lose their images, showing us the limitations of the centralization of
510510
web2 data storage.
511511

512512
![nft.pepe.jpeg](/assets/lessons/2/img_11.jpeg)
@@ -518,7 +518,7 @@ going to have to go to the moon…
518518

519519
Literally.
520520

521-
There are many services that lets us store files in a decentralized manner. We
521+
There are many services that let us store files in a decentralized manner. We
522522
are using the one called IPFS. Inter-Planetary File System. Yep, no joke.
523523

524524
![ipfs.jpeg](/assets/lessons/2/img_12.jpeg)
@@ -540,7 +540,7 @@ To ease our path into the IPFS network, services for *pinning* content (e.g.
540540
Pinata) offer paid and free tiers that ensure that the files we upload are
541541
*pinned* in IPFS.
542542

543-
So, go ahead and grab yourself a free pinata account in this
543+
So, go ahead and grab yourself a free pinata account at this
544544
[link](https://www.pinata.cloud/).
545545

546546
One of the peculiarities of IPFS is that files, or better called ‘content’, are
@@ -828,7 +828,7 @@ password (the one you use to open it, NOT your seed phrase). It also shows you a
828828
notice so you know that you are entering the danger zone. Confirm and you'll be
829829
able to copy your private key. Paste it in to our `hardhat.config.js`
830830

831-
Please, if your are already a developer and you plan to use git to store your
831+
Please, if you are already a developer and you plan to use git to store your
832832
project, don't store your `hardhat.config.js` on it, because you will have your
833833
private key there.
834834

@@ -852,7 +852,7 @@ This is the output i got in my console:
852852
![deploy.rinkeby.png](/assets/lessons/2/img_19.png)
853853

854854
Remember we are deploying to the actual blockchain, a testnet, but a blockchain
855-
none the less.
855+
nonetheless.
856856

857857
Now that we have run the deploy script, delete the private key and the RPC API
858858
key from `hardhat.config.js` to minimize the handling of the wallet. In the next
@@ -869,4 +869,4 @@ and [Opensea](https://testnets.opensea.io/collection/d-d-academy)
869869
![opensea.png](/assets/lessons/2/img_20.png)
870870

871871
And that's it! You have created your own NFT collection from scratch! What a
872-
super star!!
872+
superstar!!

0 commit comments

Comments
 (0)