I want to deploy erc721 contracts from a simple factory contract and i have this error when I try to upload NFT - "transfer to non ERC721Receiver implementer", "data"enter image description here
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./ezeynftFactory.sol";
contract ezeNFT {
uint256 public tokenCounter;
constructor(){
tokenCounter = 201;
}
function _mintNewNFT( string memory name, string memory symbol, string memory tokenUri)public{
uint256 newTokenId = tokenCounter;
ezeynftFactory nfts = new ezeynftFactory(name,symbol,tokenUri,newTokenId);
tokenCounter += 1;
}
}
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity >=0.6.0 <0.8.0;
import "../ERC721/ERC721.sol";
contract ezeynftFactory is ERC721 {
constructor(string memory name, string memory symbol,string memory tokenURI,uint tokenID)
ERC721(name,symbol)
{
_safeMint(msg.sender, tokenID);
_setTokenURI(tokenID,tokenURI);
}
}