Skip to content

Commit

Permalink
chore: consistent language and contract references
Browse files Browse the repository at this point in the history
  • Loading branch information
wolovim committed Nov 20, 2023
1 parent e009c33 commit ad747c2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/pages/lessons/projects/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ tiered NFTs and uncover the unique superpowers they possess. By the end of this
tutorial, you will have gained a wealth of knowledge and accomplished the
following steps:

- Set up a development environment
- Write and deploy a Solidity smart contract
- Create tiered NFTs with varying levels of rarity and attributes
- Write a script for deployment
- Explore additional functionalities and possibilities with tiered NFTs... in
- Setting up a development environment
- Writing and deploying a Solidity smart contract
- Creating tiered NFTs with varying levels of rarity and attributes
- Writing scripts for deployment
- Exploring additional functionalities and possibilities with tiered NFTs... in
the smart contract!
- Securely manage sensitive environment variables
- Showcase your tiered NFTs on a public marketplace
- Securely managing sensitive environment variables
- Showcasing your tiered NFTs on a public marketplace

### Developer tooling

Expand Down Expand Up @@ -244,8 +244,8 @@ contracts. We'll write our smart contract step by step in five stages:

### Add a Mint Function

Let’s get started by inheriting OpenZeppelin's ERC721.sol like we did last time.
We add a constructor to our contract, which will mirror the one from ERC721.sol.
Let’s get started by inheriting OpenZeppelin's `ERC721` contract like we did last time.
We add a constructor to our contract, which will mirror the one from `ERC721.sol`.
{/* @wolovim optional line?: Unlike in our *Basic NFT* lesson, where we added a third parameter to the constructor for storing the token's baseURI, we will have a different approach this time, which we will come to later. */}

Expand Down Expand Up @@ -441,7 +441,7 @@ contract TierNFT is ERC721 {
### Create tokenURI function
When we inherited OpenZeppelin's ERC721, it gave us a function for `tokenURI` where we can store an image, a video, or much more. With the help of this ERC721 contract we have the ability to define **a base path** for creating a
When we inherited OpenZeppelin's `ERC721`, it gave us a function for `tokenURI` where we can store an image, a video, or much more. With the help of this `ERC721` contract we have the ability to define **a base path** for creating a
unique URI which adds the token ID to the end of it.
```solidity
Expand Down Expand Up @@ -495,11 +495,11 @@ it into the contract! Nifty, eh?

Let’s stop to break it down and examine it a little.

- Within the `tokenURI` function, you'll notice `override`, an ERC721 function
- Within the `tokenURI` function, you'll notice `override`, an `ERC721` function
we'll use, since we are not creating a separate JSON file to store images or
other services, but creating it right here in the contract.
- We also added `require(_exists(tokenId). "Nonexistent token");` . According to
ERC721 specification, it is required to throw an error if the NFT doesn't
- We also added `require(_exists(tokenId). "Nonexistent token");`. According to
the ERC-721 specification, it is required to throw an error if the NFT doesn't
exist.
- `imageSVG` is a placeholder for our image, and we will deal with it a bit
later.
Expand Down Expand Up @@ -769,7 +769,7 @@ contract TierNFT is ERC721, Ownable {
```

If your phone is ringing, or someone is knocking at your door right now, ignore
all of it! Let’s get this withdraw function coded in here!!
all of it! Let’s get this withdraw function coded in here!

```solidity
// tokenURI function part of the code...
Expand Down

1 comment on commit ad747c2

@vercel
Copy link

@vercel vercel bot commented on ad747c2 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.