Lesson 14: RandomIpfsNft.sol #4936
Replies: 1 comment
-
@SorooshMortazavi Yes, this is correct that if a user calls this function multiple times, it will get the same Art Work again but it does not mean he/she will get the same NFT. Because we are using the ECR720 standard which will mint the unique NFT each time. But if you are talking about assigning unique Art Work to each user then you need to deploy the contract again and again with each new Art Work or you need to store multiple Art Works's arrays and once any Art Work assigned to any user, you can mark it assign so it should not be assigned to other (but this is limited approach because you do not know how many each new Art Works you need). In general, people create NFT collections which contain 20 to 30 unique Art Works and users mint them as NFT. You need to Understand the difference between Art Work and NFT. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
in RandomIpfsNft contract i don't understand something, when the contract create NFT for someone i think it is Necessary to restrict other users to get same NFT. but in the current source it didn't considered an it's possible to someone else get the repeated NFT that minted.
(in other words it is possible to more than 3 people cal the requestNft function in the contract and we didn't handle this should we control this or not)
before for someone else?
am i wrong?
Beta Was this translation helpful? Give feedback.
All reactions