If you feel you need a review from someone else too, I can only suggest @Celo_Academy and no one else
@yafiabiyyu I have taken time out to make further changes and I remodified my code and perfected everything, especially the backend code and the server, I also added the deployment code even though it wasnāt necessary.
Please take time out to go through them again.
OK, Iāll check again
Iāve done a review of the code in the repository, there are a few things I need to ask and also for you to fix.
-
An unknown source code snippet
const { create, getNFTs, buyNFT } = require('./nftContract');
I canāt find the source of the following code snippet -
No display for selling NFT
I know that your smart-contract has asetPrice()
function. Do users have to interact directly with the smart-contract before they can make a sale? -
A bug in purchasing tokens
ThebuyToken()
function cannot make NFT purchases, because you needmsg.sender
to be the owner, how can other people buy tokens if the requirements in the purchase process are that we must be the owner of the nft we are going to buy. -
Unstructured program files
I see that you have 3 JavaScript files in the āserverā folder. Of the three files, some are complete with the import of several modules, but some are not. How could this happen?
-
In response to Comment 1 I have refactored the code and made the functions for
create, getNFTs, buyNFT
in the nftPurchases&Sales.sol file available. But this time around withmint, getNFTs, buyToken
-
Yes, in this particular Solidity smart contract, if a user wants to sell an NFT, they would need to interact directly with the smart contract to set a sale price for their token. This is done by calling the
setPrice()
function, providing the ID of the token they want to sell and the price they want to set. -
This is already answered in Question 1.
-
I had to put all the codes in the article into the repo as you requested, thatās why we have some codes that are redundant, but it doesnāt mean the dApp wonāt run effectively.
Ok. I suggest you tag him again.
He didnāt provide the complete code, how can I test the code that was made
Iām just waiting for him to provide the complete code for testing before the final review, you can see for yourself in the repository provided
@IbehMiracle I have something to ask, to buy nft, are payments made using CUSD or the native Celo token?
Ok thatās fine. Soon as he does.
@yafiabiyyu It is typical for payments and transactions to be done using either the native Celo token(CELO) or cUSD, a stable coin on the Celo network. However, for the scope of this tutorial it is not stated explicitly for the sake of versatility such that the NFT marketplace can be replicated elsewhere
@yafiabiyyu thanks for your diligent effort here. Given all the back and forth it appears this tutorial is good enough and Iāll move to tutorials section to wrap this up. @IbehMiracle for future tutorials ensure the code you provide in the repo is the same as the code from the tutorial to provide a clear and simple experience for the reviewers and developers. Thanks!
Congratulations on publishing your first tutorial. The first is always challenging because of the standards in the academy.
Things het easier along the line.