i successfully launched the contract and listed the nfts buy opensea is not detecting my nft metadata json files.
here is my nft metadata i dont know issue i has two json files . when i launch the server all my files are together but after i list it opensea cant seem to get the metadata accurately. here is my smart contract code and my json files
// import ERC 1155 token contract from openzepplin
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
contract NFTContract is ERC1155, Ownable {
uint256 public constant ARTWORK = 0;
uint256 public constant BLAZE = 1;
constructor() ERC1155("https://3cr0kegskcmz.usemoralis.com/{id}.json") {
_mint(msg.sender, ARTWORK, 2, "");
_mint(msg.sender, BLAZE, 2, "");
}
function mint(address account, uint256 id, uint256 amount) public onlyOwner {
_mint(account, id, amount, "");
}
function burn(address account, uint256 id, uint256 amount) public {
require(msg.sender == account);
_burn(account, id, amount);
}
json1
{
"description": "Artwork of a cannabis lover.",
"image": "https://oyxdlri8q1wp.usemoralis.com/blaze.jpg",
"name": "Billy Blazer"
}
json2
{
"description": "Paradise.",
"image": "https://oyxdlri8q1wp.usemoralis.com/mistic.jpg",
"name": "Midnight metropolis"
}