Hardhat local dev node events not syncing

Same issue as described here: [SOLVED] Event Sync Not Working on devchain

STILL not working using a hardhat v2.10.1 local node; :le_sigh: :persevere:

Tried restarting the node locally a couple of times, then recreating the app on moralis.io multiple times, as well as the syncs for events

Result from running curl -X POST 127.0.0.1:8545 -d '{"method": "eth_chainId", "id" : "0"}'

Sync Dashboard:

Proxy is connected via frp
image

Dashboard has sync info, but no event records
image

Server deployed here
https://fdeckwojlg9n.usemoralis.com:2053/server

it is not going to work with this ABI:

{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"}

because the names have that _, you have to edit the abi and to remove those _ from the name

at least this is an issue

that’s the LAST place an error was expected, as this is the ABI introduced by the UI wizzard :slight_smile: :persevere:

is it ok to just edit it in the _EventSyncStatus table?

Later edit: tried and removed the underscore, same deal, no sync

it will not work if you edit in _EventSyncStatus table, you have to edit the event or to remove it and add it again

Restarted from 0: new local block node, new app on moralis, new event sync, with the ABI mentioned…still won’t work :sob:

Server: https://bbtjhai28flq.usemoralis.com:2053/server

A mention though: i can see eth_blockNumber(increasing count) being called in the Hardhat-ganache window

1 Like

now it looks like the abi is not the correct one somehow, you need the exact abi, for example when it is indexed and when it is not indexed it matters

1 Like

GAH! indexed, property, thanks! good spot!

Finally, it is working as expected ! :partying_face:

So i guess the culprit here is the Wizzard for ERC-721 event subscription
image

For the Transfer event, it is inserting ABI with parameters ending in underscore (from_, to_, tokenId_), which should not be

FIX: Use own / custom ABI and Contract Event subscription
image

How to proceed from here to close this with a follow-up action?

1 Like

thanks for the feedback, yes, it looks like we’ll have to fix this one too

1 Like

Very prompt, and to-the-point!

5/5 :star2:

1 Like