Skip to content

Dacade review - #1

Open
Aishat-Akinyemi wants to merge 4 commits into
SharonDav:mainfrom
Aishat-Akinyemi:main
Open

Dacade review#1
Aishat-Akinyemi wants to merge 4 commits into
SharonDav:mainfrom
Aishat-Akinyemi:main

Conversation

@Aishat-Akinyemi

@Aishat-Akinyemi Aishat-Akinyemi commented Jun 28, 2022

Copy link
Copy Markdown
  1. I added a brief description of the smartcontract’s function in the Readme.md
    An NFTMarketplace where users can mint NFTs to be listed for sale, for others to buy. New buyers can relist the NFTs.

  2. Refactored and renamed createListedToken function to listToken. This way it can be called to relist a bought token. Also, I made it such that the owner of the token is the actual owner of the token, not the nft-contract-account.

  3. I added a canListToken modifier that performs checks to ensure all requirements are met

  4. I also updated the transfer of Ether to use call method. Currently that is the recommended method for making transfers to other accounts on EVM

  5. Refactored executeSale such that when an NFT is purchased, the owner property of that NFT is updated to the buyer address and the seller is updated to a zero-address. This is important for when a buyer decides to relist the NFT.

  6. Also refactored getMyNFTs so that no bugs are introduced from the above changes

1. Refactored and renamed createListedToken function to listToken. This way it can be called to relist a bought token.
2. I added a canListToken modifier that performs checks to ensure all requirements are met
3. I also updated the transfer of Ether to use call method. Currently that is the recommended method for making transfers to other accounts on EVM
fix syntax error
1. Refactored and renamed createListedToken function to listToken. This way it can be called to relist a bought token. Also, I made it such that the owner of the token is the actual owner of the token, not the nft-contract-account. 
2. Refactored `executeSale` such that when an NFT is purchased, the owner property of that NFT  is updated to the buyer address and the seller is updated to a zero-address. This is important for when a buyer decides to relist the NFT. 
3. refactored `getMyNFTs` so that no bugs are introduced from the above changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant