dappuniversity / nft_marketplace

145 stars 186 forks source link

security valnerability #14

Closed notmhyr closed 1 year ago

notmhyr commented 1 year ago

checks if the caller is the owner of the nft and also checks if our contract is approved to move the token. using item id for listed items mapping is not a good way because there is no way to know the nft is already listed or not