I am trying to make a simple nft smart contract that only allows the wallet owner to mint nfts
pragma solidity ^0.8.15;
import "erc721a/contracts/ERC721A.sol";
contract testNFTRun is ERC721A {
constructor() ERC721("testNFTRun", "TNFTR") {}
function mint(uint256 quantity) external payable {
// `_mint`'s second argument now takes in a `quantity`, not a `tokenId`.
require(msg.sender == ownerOf(), "Only contract owner can mint NFTs");
_mint(msg.sender, quantity);
}
function _baseURI() override internal view virtual returns (string memory) {
return "ipfs://bafybeifgxh2lo3jpx6xg2bl3wlnifgpahcdvmktl42jz7d7m7x7y6yap3i/";
}
}
I am getting this error compiling the smart contract
DeclarationError: Identifier not found or not unique.
--> noot.sol:14:19:
|
14 | constructor() ERC721("testNFTRun", "TNFTR") {}
| ^^^^^^
Probably something with how I am importing the erc721a contracts but I cant find any issues