Skip to content

Commit

Permalink
Fixed reference contract and layout disruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
nakmr committed Nov 28, 2023
1 parent f199f07 commit 46b9fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Let's focus on explaining the `mint` function:

5. `tokenIds += 1;` After all the aforementioned conditions are met, `tokenIds` will be incremented by 1. Remember, the default value of `tokenIds` is 0, so our `tokenIds` range becomes 1, 2, 3, 4.

6. `_safeMint(msg.sender, tokenIds);` This is the functionality implemented by `"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"`. You can explore the specific functionalities by opening that contract. For now, we only need to understand that this will result in minting an NFT to the caller of this function.
6. `_safeMint(msg.sender, tokenIds);` This is the functionality implemented by `"@openzeppelin/contracts/token/ERC721/ERC721.sol"`. You can explore the specific functionalities by opening that contract. For now, we only need to understand that this will result in minting an NFT to the caller of this function.

```solidity
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ Now let's update the files in the `packages/contract` folder.
First, let's move the contracts folder in the root of the project into the `packages/contract` folder. The following command should be executed in the root of the project.

```
rm -r ./packages/contract/contracts/ && mv ./cont
contracts/ ./packages/contract/
rm -r ./packages/contract/contracts/ && mv ./contracts/ ./packages/contract/
```

Next, update `hardhat.config.ts` as follows
Expand Down

0 comments on commit 46b9fd2

Please sign in to comment.