Hello,
I have an event with the ABI below:
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "_affiliateId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_numberOfTokens",
"type": "uint256"
},
{
"indexed": false,
"internalType": "enum SalientYachtsSYONE_v02.NFTType",
"name": "_nftType",
"type": "uint8"
}
],
"name": "AffiliateSale",
"type": "event"
}
I created an event sync for it using the inputs below:
Topic: AffiliateSale(bytes32,uint256,uint8)
Abi: same as above
Address: 0xcef1bFc0b864193278a66bFDdC99EdE58C66E319
Table Name: AffiliateSales
However, the table is empty and does not have any of the 3 columns I am expecting to see: _affiliateId, _numberOfTokens, _nftType
I saw in other topics the recommendation to use the “type” of the parameter “unit8” instead of using the enum nam “NFTType” and that is what I did but it still does not work.
I can see the events on snowtrace: https://testnet.snowtrace.io/address/0xcef1bfc0b864193278a66bfddc99ede58c66e319#events
You can filter on topic: 0x2f5905fac4ad4af88ee4d477308761cefd638cdc30e994adf1bb77f84d02ec30
I also see the following in the Moralis server logs:
2022-02-10T22:24:55.583Z - Ran cloud function coreservices_addEventSync for user undefined with:
Input: {"chainId":"0xa869","address":"0xcef1bFc0b864193278a66bFDdC99EdE58C66E319","tableName":"AffiliateSalesTwo","topic":"AffiliateSale(bytes32,uint256,uint8)","abi":{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"affiliateId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"indexed":false,"internalType":"enum SalientYachtsSYONE_v02.NFTType","name":"nftType","type":"uint8"}],"name":"AffiliateSale","type":"event"},"filter":"","sync_historical":true,"description":"Affiliate Sales Two"}
Result: {"status":200,"data":{"success":true,"result":true}}
Thanks in advance for your time.