[In-Progress] I Cloned OpenSea in 2 Hours - CreatedMarketItems not populated

Dear Support Team,

Good day!

I am following the tutorial “I Cloned OpenSea in 2 Hours - Building a Cross-Chain NFT Marketplace FULL COURSE” (https://www.youtube.com/watch?v=WZWCzsB1xUE&list=PLFPZ8ai7J-iR4F882O2mBjqydynG9iDZS).

**At Video 1:02:06, I was not able to populate the CreatedMarketItems table **
Tutorial screenshot:
CreatedMarketItems-Tutorial

My screenshot:


Here is the ABI I used:

Blockquote
[
{
“inputs”: [],
“stateMutability”: “nonpayable”,
“type”: “constructor”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “uint256”,
“name”: “itemId”,
“type”: “uint256”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “nftContract”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “uint256”,
“name”: “tokenId”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “address”,
“name”: “seller”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “address”,
“name”: “owner”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “price”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “bool”,
“name”: “sold”,
“type”: “bool”
}
],
“name”: “MarketItemCreated”,
“type”: “event”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “uint256”,
“name”: “itemId”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “address”,
“name”: “owner”,
“type”: “address”
}
],
“name”: “MarketItemSold”,
“type”: “event”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “nftContract”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “tokenId”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “price”,
“type”: “uint256”
}
],
“name”: “createMarketItem”,
“outputs”: [],
“stateMutability”: “payable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “nftContract”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “itemId”,
“type”: “uint256”
}
],
“name”: “createMarketSale”,
“outputs”: [],
“stateMutability”: “payable”,
“type”: “function”
},
{
“inputs”: [],
“name”: “fetchMarketItems”,
“outputs”: [
{
“components”: [
{
“internalType”: “uint256”,
“name”: “itemId”,
“type”: “uint256”
},
{
“internalType”: “address”,
“name”: “nftContract”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “tokenId”,
“type”: “uint256”
},
{
“internalType”: “address payable”,
“name”: “seller”,
“type”: “address”
},
{
“internalType”: “address payable”,
“name”: “owner”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “price”,
“type”: “uint256”
},
{
“internalType”: “bool”,
“name”: “sold”,
“type”: “bool”
}
],
“internalType”: “struct marketPlaceBoilerPlate.MarketItem[]”,
“name”: “”,
“type”: “tuple[]”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “owner”,
“outputs”: [
{
“internalType”: “address”,
“name”: “”,
“type”: “address”
}
],
“stateMutability”: “view”,
“type”: “function”
}
]

If you could point me to the right direction, it will be greatly appreciated!

Thank you.

Best regards,
Melvin

What is your marketplace contract address and chain? Does it have any MarketItemCreated events?

My contract address:
0x501abe8c6bb40b20670e22da5146970fac010650
Chain:
Polygon Mumbai Testnet
I don’t know how to check/look if it created a MarketItemCreated event or not. Maybe you can guide me through it.

Thanks!

That’s not your marketplace contract address. Have you deployed this contract?

Dear Glad,

No, I did not deploy in remix. I just compiled in remix and used the generated ABI in Moralis ‘Add New Sync’

-Melvin

You need to deploy the contract and use that contract address. You can follow this tutorial for all the steps you need to do.

Thanks, Glad! Would try deploying. Really appreciate your response. Cheers!

Dear Glad,
I deployed the smart contract.
Here is the market place address:
0x4444B1dE146F003Fa32243c4e3f505463ce066F2
Then i clicked List button, then Sell button and the transaction went through metamask.
However, CreatedMarketItems is still not populatedCreatedMarketItems-NotPopulated

If you could help me still with the same issue.
Cheers!
-Melvin

Chain:
Polygon Mumbai Testnet

There’s no events showing for that contract if you check it on polygonscan.