Hello all,
I have a few questions concerning the current implementation for the Starknet events:
-
Why is the key associated with an event not similar to the signature used on Ethereum? On Ethereum you use the Keccak256 of the full event signature e.g. Transfer(address, address, uint256), while Starknet only uses the 250 first bits of the Keccak256 of the function’s name e.g. Transfer. What is the reasoning behind this choice?
-
I was querying events using my node (pathfinder from eqlabs) and I am getting unsorted events within the same block e.g. for a mint contract, if a user mints then transfers the nft in the same block, it happens in some cases that I get the transfer event BEFORE the mint event. Since the rpc doesn’t return the event ID nor the transaction ID I have no way of ordering. This seems to spawn from the definition of the openrpc found here. Does anyone have a possible solution on this?
EDIT: issue has been created for this ordering problem.
Thanks in advance for your help.