I have created a contract which takes care of buy and sell of NFT's or ERC721 tokens. So i have approved the contract to sell the NFT. Now my questions are:-
Once I have transferred the contract to a buyer can the previous owner have the access to it as well or is it like after transfer the approval is also removed from the owner? If not then how can I revoke their access or maybe disapprove the previous owner after selling an ERC721 token. Code for transfer:-
IERC721(nftContractAddress).transferFrom( idMarketItem[itemId].owner, msg.sender, tokenId );
How can I disapprove a buy/sell contract from its ownership on an NFT contract? Is it the following code that will disapprove the contract:-
IERC721(nftContractAddress).setApprovalForAll( address(this), false );