Skip to content

Lesson 15: Expected event but reverted with reason ERC721: caller is not token owner or approved #5183

Closed Answered by alymurtazamemon
Yana-Gupta asked this question in Q&A
Discussion options

You must be logged in to vote

@Yana-Gupta Here you need to give approval to NFT marketplace;

-await basicNft.approve(basicNftContract.address, TOKEN_ID)
+await basicNft.approve(nftMarketplaceContract.address, TOKEN_ID)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yana-Gupta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants