Identifier not found (ERC721) - on Remix IDE

Hi all, I try to create simple contract which manages NFTs using ERC721 from openzeppelin

My code looks like that:

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

import "./Owned.sol";

contract StakingContract is Owned {
    IERC20 public rewardsToken;
    ERC721 public stakingNFToken;

I got this error for ERC721 variable: "DeclarationError: Identifier not found or not unique."
Any ideas how properly import ERC721 from openzeppelin? I am building on remix online IDE

You haven't declared erc721
Solution:
Contract StakingContract is ERC721

And also why are you importing erc20 in to the contract

I am importing ERC721 if you notice import 3rd line. Contract itself does not have to be ERC721, because it will manage staking. I import ERC20 because rewardsToken will used interface of IERC20.
You should learn some basics before trying to help :slight_smile: