nftCollection.transferFrom(msg.sender, address(this), _tokenId);
this threw error , callewr is not owner nor approve
which is obvious as for NFT contract msg.sender is not user but staking contract and can't use transferfrom.
correct me if i'm wrong.
Gurdeep Singh
This won't work as
nftCollection.transferFrom(msg.sender, address(this), _tokenId);this threw error , callewr is not owner nor approve which is obvious as for NFT contract msg.sender is not user but staking contract and can't use transferfrom. correct me if i'm wrong.