You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-Showcasing your tiered NFTs on a public marketplace
102
102
103
103
### Developer tooling
104
104
@@ -244,8 +244,8 @@ contracts. We'll write our smart contract step by step in five stages:
244
244
245
245
### Adda Mint Function
246
246
247
-
Let’s get started by inheriting OpenZeppelin's ERC721.sol like we did last time.
248
-
We add a constructor to our contract, which will mirror the one from ERC721.sol.
247
+
Let’s get started by inheriting OpenZeppelin's `ERC721` contract like we did last time.
248
+
We add a constructor to our contract, which will mirror the one from `ERC721.sol`.
249
249
250
250
{/* @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. */}
251
251
@@ -441,7 +441,7 @@ contract TierNFT is ERC721 {
441
441
442
442
### Create tokenURI function
443
443
444
-
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
444
+
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
445
445
unique URI which adds the token ID to the end of it.
446
446
447
447
```solidity
@@ -495,11 +495,11 @@ it into the contract! Nifty, eh?
495
495
496
496
Let’s stop to break it down and examine it a little.
497
497
498
-
- Within the `tokenURI` function, you'll notice `override`, an ERC721 function
498
+
- Within the `tokenURI` function, you'll notice `override`, an `ERC721` function
499
499
we'll use, since we are not creating a separate JSON file to store images or
500
500
other services, but creating it right here in the contract.
501
-
- We also added `require(_exists(tokenId). "Nonexistent token");`. According to
502
-
ERC721 specification, it is required to throw an error if the NFT doesn't
501
+
- We also added `require(_exists(tokenId). "Nonexistent token");`. According to
502
+
the ERC-721 specification, it is required to throw an error if the NFT doesn't
503
503
exist.
504
504
-`imageSVG` is a placeholder for our image, and we will deal with it a bit
505
505
later.
@@ -769,7 +769,7 @@ contract TierNFT is ERC721, Ownable {
769
769
```
770
770
771
771
If your phone is ringing, or someone is knocking at your door right now, ignore
772
-
all of it! Let’s get this withdraw function coded in here!!
772
+
all of it! Let’s get this withdraw function coded in here!
0 commit comments