Closed boyuan-chen closed 2 years ago
The id of events can't be the transaction hash, because we might relay multiple L2 txs in one block so that subgraph only picks one event.
The id of events is replaced by the unique msg hash.
The unit tests are added.
Issue
The id of events can't be the transaction hash, because we might relay multiple L2 txs in one block so that subgraph only picks one event.
Fix
The id of events is replaced by the unique msg hash.
Tests
The unit tests are added.