Skip to content

Commit

Permalink
graph: Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Mar 31, 2021
1 parent f1b68dc commit c56f3b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion graph/src/data/subgraph/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ impl super::DataSource {
&& context == &other.context
}

/// Returns the contract event with the given signature, if it exists.
/// Returns the contract event with the given signature, if it exists. A an event from the ABI
/// will be matched if:
/// 1. An event signature is equal to `signature`.
/// 2. There are no equal matches, but there is exactly one event that equals `signature` if all
/// `indexed` modifiers are removed from the parameters.
fn contract_event_with_signature(&self, signature: &str) -> Option<&Event> {
// Returns an `Event(uint256,address)` signature for an event, without `indexed` hints.
fn ambiguous_event_signature(event: &Event) -> String {
Expand Down

0 comments on commit c56f3b5

Please sign in to comment.