Introduction In this guide, we will create: An ERC-721 NFT Drop smart contract with lazy minted NFTs users can mint Your own ERC-20 token smart contract An NFT Staking Smart Contract where users can stake their NFTs, and earn tokens for doing so! B...

Markdown supported · ⌘↵ to post
Gurdeep Singh
clean code
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.