I have a flow which yields 4 events.
When I obtain the transaction hash via web3.js, I can see that all 4 events are included in the receipt logs, but only the last 2 events are in the decoded logs (which means I have to decode the first 2 events myself):
{
"receipt": {
...
"logs": [
{
"logIndex": 0,
...
},
{
"logIndex": 1,
...
},
{
"logIndex": 2,
...
},
{
"logIndex": 3,
...
}
],
...
},
"logs": [
{
"logIndex": 2,
...
},
{
"logIndex": 3,
...
}
]
}
What is the reason for this?
receipt
part shows it clearly, but the decoded-log part contains only partial information. When I run similar flows with only 2 events, all of them are decoded. Perhaps there's a web3 limitation on the amount of decoded events, but it clearly feels like an issue on web3 side. Thank you!!!