Hi all.
I have done the âDeploy and Track ERC20 Eventsâ tutorial and got an error after adding the plugin to Sync MOR Transfer Events.
The MORTranferEvent table was never created, so I checked Logs and got this error:
2021-05-23T20:01:12.782Z - Error syncing syncMORTransferEvent "Cannot read property 'forEach' of undefined" TypeError: Cannot read property 'forEach' of undefined
at decodeLog (/moralis-server/lib/cloud-code/plugins/helpers/events.js:152:14)
at historicalUpsertParams (/moralis-server/lib/cloud-code/plugins/helpers/events.js:123:75)
at /moralis-server/lib/cloud-code/plugins/helpers/events.js:40:9
at Array.map (<anonymous>)
at upsertLogs (/moralis-server/lib/cloud-code/plugins/helpers/events.js:36:44)
at /moralis-server/lib/cloud-code/plugins/evm/events.js:135:15
at seekPage (/moralis-server/lib/cloud-code/plugins/evm/historical/api.js:95:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async SyncJob.sync (/moralis-server/lib/cloud-code/plugins/evm/events.js:133:5)
at async SyncJob.execute (/moralis-server/lib/cloud-code/plugins/helpers/sync.js:34:7)
I tried to run it manually from Jobs and got the error again.
Any help?
Server url: https://3zll8mgpbesj.moralis.io:2053/server
Thanks,
Murilo