You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event data is not split into seperate events - it is just a list of key-value pairs. At the moment, we are just seperating them by assuming that when there is a "_contract_address" key then this is the start of a new event...but is this valid? Can someone mess things up by emitting an event from a contract with a key _contract_address and spoof the indexer (for example) into thinking that the even has come from another contract?
To Reproduce
Se above
Context
Mac OS pointing at Dorado
Failure Logs
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Expected Behavior
When a contract calls another contract, we should be able to determine which emitted events come from which contract.
Current Behavior
Here is a transaction where one contract has called another (and maybe that called another one)- they all emit events.
Type this:
fetchd query tx --type hash EA8C0B4DF96C9E2A6D62F51FEFFFF9DFD23E25841E7D0CA23F180F85A58E7797
Look at the raw_log
Formatted in python with pprint we get:
The event data is not split into seperate events - it is just a list of key-value pairs. At the moment, we are just seperating them by assuming that when there is a "_contract_address" key then this is the start of a new event...but is this valid? Can someone mess things up by emitting an event from a contract with a key _contract_address and spoof the indexer (for example) into thinking that the even has come from another contract?
To Reproduce
Se above
Context
Mac OS pointing at Dorado
Failure Logs
No response
The text was updated successfully, but these errors were encountered: