Language
Solidity
Total Length
1.7h
Part of Learning Track
Build on Ethereum + 1
Here we setup the contract for further variables and functionalities.
In this uint, we will assign the address value to the NFT contract.
1. Define an event that will be used to notify everyone about a new listing NFT 2. Define the listNFT function 3. We need to check if the owner of the NFT to be listed is the caller. 4. The price of the NFT cannot be defined as 0.
1. Transfer the NFT from the NFT contract to the trading marketplace contract. 2. List the information of the NFT. 3. Submit the NFT listing event.
We will implement the second feature of the NFT trading market contract: querying the information of a listed NFT item.
Language
Solidity
Total Length
1.7h
Part of Learning Track
Build on Ethereum + 1