optimism icon indicating copy to clipboard operation
optimism copied to clipboard

ICrossDomainMessenger doesn't index the sender parameter of SentMessage

Open smartcontracts opened this issue 3 years ago • 1 comments

The ICrossDomainMessenger interface does not index the sender parameter within the SentMessage function. This means that it's quite difficult to search for events from a given sender using basic event query techniques (you'd have to scan every event). As a result, I'm unable to make the getMessagesByAddress function of the SDK be performant without plugging in an indexer.

For now, the SDK will throw an error when attempting to use getMessagesByAddress when the indexer is not supplied. I would like to get this event parameter indexed so that I can at least make the function work going forward without the indexer.

smartcontracts avatar Feb 03 '22 22:02 smartcontracts

Will be fixed in Bedrock

smartcontracts avatar Sep 06 '22 18:09 smartcontracts