---
title: "Comment by Gurdeep Singh on \"Create An NFT Staking Smart Contract with Solidity & thirdweb Deploy!\" | Hashnode"
description: "This won&#39;t work as nftCollection.transferFrom(msg.sender, address(this), _tokenId); this threw error , callewr is not owner nor approve which is obvious as"
url: "https://hashnode.com/posts/create-an-nft-staking-smart-contract-with-solidity-and-thirdweb-deploy/629e2481a6bfa05457952672/comment/62e1276e657a4fae5a0e7466"
---

[Discussion](https://hashnode.com/posts/create-an-nft-staking-smart-contract-with-solidity-and-thirdweb-deploy/629e2481a6bfa05457952672)

Comment [Create An NFT Staking Smart Contract with Solidity & thirdweb Deploy!](https://hashnode.com/posts/create-an-nft-staking-smart-contract-with-solidity-and-thirdweb-deploy/629e2481a6bfa05457952672)

[Gurdeep Singh](https://hashnode.com/@gurd33p)

[Jul 27, 2022](https://hashnode.com/posts/create-an-nft-staking-smart-contract-with-solidity-and-thirdweb-deploy/629e2481a6bfa05457952672/comment/62e1276e657a4fae5a0e7466)

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.
