Ultimate NFT Tutorial - Json not read by open sea

Hi guys,
I seem to be able to follow the tutorial so far, until i publish my NFT’s on the open sea testnet. Open sea is not pulling the data from the Json files I have hosted on moralis. For example:
https://uupola8uxtgk.usemoralis.com/0000000000000000000000000000000000000000000000000000000000000000.json
I tried removing the whitespaces as per one person suggested - no luck -
I can only assume I have set up the contract wrong somehow, here is what i have set up through remix:

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 TAROTART = 0;
    uint256 public constant TAROTPHOTO = 1;

    constructor() ERC1155("https://uupola8uxtgk.usemoralis.com/{id}.json") {
        _mint(msg.sender, TAROTART, 1, "");
        _mint(msg.sender, TAROTPHOTO, 2, "");
    }

Let me know if I missed some part of the syntax or any other ideas you have,

Thanks!

what is the transaction that deployed that smart contract?

Most recent deployment’s transaction hash:
0xe65fc5e3808fd0515f7015224b283f978767c33b0d6fe7dbadbc8e19cbb8b15d

contract address:
0xc9c2e4c3ff0fc6277d60121186ee6ec288a66161

NFT’s on opensea testnet, they’re there but no metadata:
https://testnets.opensea.io/collection/unidentified-contract-mg7uq4yaio

it looks like the smart contract that was deployed has this type of url: uupola8uxtgk.usemoralis.com/{id}.json instead of the version with https://uupola8uxtgk.usemoralis.com/{id}.json

Thank you! got it fixed now! I had added the https//: but I think I didn’t recompile before I redeployed. How were you able to look at the code of the contract that was deployed? I was unable to find it.

Thanks again :slight_smile:

Ok i found out how to get access to the metadata.
If you go to:


open sea will show you :slight_smile:

I looked at the binary code that was deployed, without having access to the source code. But there you can read the strings if you convert it to UTF-8 in etherscan interface. I also called the function to get the specific token_uri.

I’ve run I to similar problem and I’m completely a noob at this , please walk me through on how to fix this @cryptokid @farstrider777
I’m taking the exact tut and I was pretty gassed up for the final moment until it never came

we need more info, to see what it didn’t work as expected