Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zorancv authored and incrypto32 committed Dec 5, 2024
1 parent bf7159c commit b7b0694
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions graph/src/blockchain/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,16 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {

fn create_subgraph_trigger_from_entity(
filter: &SubgraphFilter,
entity: &Entity,
) -> subgraph::TriggerData {
subgraph::TriggerData {
source: filter.subgraph.clone(),
entity: entity.clone(),
entity_type: filter.entities.first().unwrap().clone(),
}
entity: &Vec<Entity>,
) -> Vec<subgraph::TriggerData> {
entity
.iter()
.map(|e| subgraph::TriggerData {
source: filter.subgraph.clone(),
entity: e.clone(),
entity_type: filter.entities.first().unwrap().clone(),
})
.collect()
}
}

Expand Down

0 comments on commit b7b0694

Please sign in to comment.