Hi cryptokid.
It solved. I have started the process from zero. and the event sync is working now. I think the problem was with ABI.
I have a new issue. the process should be started in after save function in cloud. even though the transfer happens in dapp, control never reach aftersave function. Note i am logging it but the message did not come. What could be the reason?
Thank you
Moralis.Cloud.afterSave(âETHTokenTransfersâ, (request) => {
logger.info(âinside cloud.aftersaveâ);
const data = JSON.parse(JSON.stringify(request.object, [âtoken_addressâ, âto_addressâ, âfrom_addressâ,âtransaction_hashâ,âvalueâ, âconfirmedâ]));
logger.info(data);
if (data[âtoken_addressâ] == mainToken_address.toLocaleLowerCase() && data[âto_addressâ] == MainBridge_address.toLocaleLowerCase() && !data[âconfirmedâ]) {
const txlock = processBridgeRequestLock(data);
const txbridge = processBridgeRequestBridge(data);
}
else{
logger.info(âtransaction not related to bridgeâ);
}