I had this contract in testnet and everything was working as intended. The same contract, deployed to mainnet gives out errors.
This is the event declared in the contract
event LotteryJoin(address indexed _from, uint256 amount);
This is the emit call from the contract
emit LotteryJoin(msg.sender, msg.value);
This is the ABI for that event used in the sync configuration
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LotteryJoin",
"type": "event"
}
This is the topic used in sync configuration
LotteryJoin(address,uint256)
Both configurations are the same in both mainnet and testnet - only the Table Name differs
So, whenever that event is triggered, the testnet code works good
On the mainnet, in dashboard logs I see this error:
2022-03-17T07:57:50.765Z - Error: Invalid field name for update: _from
at /moralis-server/lib/Controllers/DatabaseController.js:582:21
at Array.forEach (<anonymous>)
at /moralis-server/lib/Controllers/DatabaseController.js:574:31
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I have the same code / configuration in both testnet and mainnet. What is happening?