marketplace. keep getting this error even though i own the nft
You need to do an approval tx first on the NFT contract, approving this other contract to transfer your NFT
IERC721(nftsForSale[id].token).approve(address(this), nftsForSale[id].tokenID);
If you're the owner of the NFT, you have to be the one to call approve, not some smart contract calling it
Обсуждают сегодня