Skip to content

Commit 4ae6000

Browse files
author
Zoran Cvetkov
committed
fixes
1 parent 26c0c2a commit 4ae6000

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

graph/src/blockchain/block_stream.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,16 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {
445445

446446
fn create_subgraph_trigger_from_entity(
447447
filter: &SubgraphFilter,
448-
entity: &Entity,
449-
) -> subgraph::TriggerData {
450-
subgraph::TriggerData {
451-
source: filter.subgraph.clone(),
452-
entity: entity.clone(),
453-
entity_type: filter.entities.first().unwrap().clone(),
454-
}
448+
entity: &Vec<Entity>,
449+
) -> Vec<subgraph::TriggerData> {
450+
entity
451+
.iter()
452+
.map(|e| subgraph::TriggerData {
453+
source: filter.subgraph.clone(),
454+
entity: e.clone(),
455+
entity_type: filter.entities.first().unwrap().clone(),
456+
})
457+
.collect()
455458
}
456459
}
457460

0 commit comments

Comments
 (0)