I am making a nft rental contract. When calling setUser or any function in the contract error is generated -- ERC721: operator query for nonexistent token. Even if the token is minted . Any guess why? The contract is as follows https://github.com/shristivyas/SmartContracts/blob/main/nft-renting.sol



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.