I deployed a NFT contract “0x7e82c782a01d56070851a1f197da0efc139ffec3” on rinkeby with two NFT’s with ID=0 and 1.and when i tried to see the NFT’s on opensea it could not load the NFT metadata.
The NFT with id 0 and 1 are stored under https://0g4wexcx5qtg.usemoralis.com/0000000000000000000000000000000000000000000000000000000000000000.json
https://0g4wexcx5qtg.usemoralis.com/0000000000000000000000000000000000000000000000000000000000000001.json
This is the solidity program which i used
pragma solidity ^0.8.0;
//Import form Open Zeplin
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 Photo = 1;
constructor() ERC1155("https://0g4wexcx5qtg.usemoralis.com/{id}.json") {
_mint(msg.sender, ArtWork, 1, "");
_mint(msg.sender, Photo, 2, "");
}
function mint(address to,uint256 id,uint256 amount) public onlyOwner {
_mint(to, id, amount, "");
}
function burn(address to,uint256 id,uint256 amount) public {
require(msg.sender == to);
_burn(to, id, amount);
}
}
What did it go wrong?