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 Sep 12, 2024
1 parent 66e37ba commit b21706b
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 @@ -445,13 +445,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 b21706b

Please sign in to comment.