[SOLVED] Rarible clone events not syncing

Hey,

I’ve been struggling with the event syncing on Moralis.

I’m using Ganache and the frpc is showing that it’s connected in the dashboard on Moralis.
Below a picture of the settings and the abi. When saving I immediatly get a new browser class.

I’ve tried a new Moralis server, ganache migration reset and a combination of both.
My contract in ganache is showing that the event has taken place multiple times.

server URL: https://xo347oopk8ec.usemoralis.com:2053/server
topic: itemAdded(uint256,uint256,address,uint256)
abi:

{
  "anonymous": false,
  "inputs": [
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "id",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "tokenId",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "address",
      "name": "tokenAddress",
      "type": "address"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "askingPrice",
      "type": "uint256"
    }
  ],
  "name": "itemAdded",
  "type": "event"
}

Thanks!

What about the address of the contract. Is that proper? Everytime you deploy the contract on ganache, its a different contract address so that might be the issue?

Thank you for your reply!

I’ve added this one, I think that it’s correct no?


@cryptokid new server URL: https://4qqdnar9feou.usemoralis.com:2053/server

you have the event synced now in a new table that has an a at the end, I changed the name of a field that had the name id

1 Like

I see you changed the id in the abi to id2, was that the error?
I tried that but I think I did not restart my server afterwards.
In the docs is written that the id is changed to uid so I thought that i wouldn’t make a difference.

Thank you very much for the help!

I think that the id name was the problem in this case

1 Like

I had other issues when changing the name of the class back to a normal name.

For other users:
It didn’t work by just changing the name of the class en keeping the change from id -> id2
I had to chose id3 or id4 to make it work again.