[SOLVED] Sync contract events from Ganache not being captured

I have tried to sync an event to Moralis from my local Ganache blockchain but it doesn’t contain any entries despite there being two instances of this event. I have tried re-starting my Moralis server but this didn’t help. I have also checked I have historical sync turned on.

it should work, usually you have to create a new server to make it work

there could also be problems related to the abi or topic

I have tried it with a brand new Moralis server and have the same issue.

Topic: DatasetMade(uint256,string,string,string,uint256,uint256,string,bool,address)
abi:
{
“anonymous”: false,
“inputs”: [
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “id”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “string”,
“name”: “name”,
“type”: “string”
},
{
“indexed”: false,
“internalType”: “string”,
“name”: “description”,
“type”: “string”
},
{
“indexed”: false,
“internalType”: “string”,
“name”: “hash”,
“type”: “string”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “cost”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “length”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “string”,
“name”: “authorName”,
“type”: “string”
},
{
“indexed”: false,
“internalType”: “bool”,
“name”: “forSale”,
“type”: “bool”
},
{
“indexed”: false,
“internalType”: “address payable”,
“name”: “author”,
“type”: “address”
}
],
“name”: “DatasetMade”,
“type”: “event”
}

what is the server url?

https://46mvvba2bubk.usemoralis.com:2053/server

this doesn’t look like a new server, it looks like a server from 4 weeks ago

Oh right, sorry, I went back to my old one after I tried a new one and it didn’t work. I can make a new server again if that would help?

I would expect it to work with a new server

Ok I made a new server and tried again. It didn’t work. Same abi and topic as above.

https://im9rgk677uco.usemoralis.com:2053/server

it looks like it works now, but the main problem seems like it was that abi has a field named length, and I changed it to length2 in the abi in order to make it work

1 Like

Ok, thank you so much. It works on my older server as well!

2 Likes