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 b21706b commit 44c0385
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions graph/src/blockchain/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {
if let Some(entity_type) = ent.first() {
let et = schema.entity_type(entity_type).unwrap();

let f: u32 = from as u32;
let t: u32 = to as u32;
let br: Range<u32> = f..t;
let br: Range<BlockNumber> = from..to;
let entities = store.get_range(&et, br)?;
return self
.subgraph_triggers(
Expand Down Expand Up @@ -413,7 +411,7 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {
from: BlockNumber,
to: BlockNumber,
filter: &Arc<TriggerFilterWrapper<C>>,
entities: BTreeMap<BlockNumber, Entity>,
entities: BTreeMap<BlockNumber, Vec<Entity>>,
) -> Result<(Vec<BlockWithTriggers<C>>, BlockNumber), Error> {
let logger2 = logger.cheap_clone();
let adapter = self.adapter.clone();
Expand All @@ -427,7 +425,7 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {
match entities.get(&key) {
Some(e) => {
let trigger_data =
vec![Self::create_subgraph_trigger_from_entity(first_filter, e)];
Self::create_subgraph_trigger_from_entity(first_filter, e);
Some(BlockWithTriggers::new_with_subgraph_triggers(
block,
trigger_data,
Expand Down

0 comments on commit 44c0385

Please sign in to comment.