File tree 1 file changed +11
-2
lines changed
graph/src/components/ethereum 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,15 @@ impl EthereumBlockFilter {
478
478
479
479
pub fn extend ( & mut self , other : EthereumBlockFilter ) {
480
480
self . trigger_every_block = self . trigger_every_block || other. trigger_every_block ;
481
+ self . block_type = match self . block_type {
482
+ BlockType :: FullWithReceipts => BlockType :: FullWithReceipts ,
483
+ BlockType :: Full => match other. block_type {
484
+ BlockType :: FullWithReceipts => BlockType :: FullWithReceipts ,
485
+ _ => BlockType :: Full ,
486
+ } ,
487
+ BlockType :: Light => other. block_type ,
488
+ } ;
489
+
481
490
self . contract_addresses = self . contract_addresses . iter ( ) . cloned ( ) . fold (
482
491
HashSet :: new ( ) ,
483
492
|mut addresses, ( start_block, address) | {
@@ -839,10 +848,10 @@ fn parse_block_triggers(
839
848
. collect :: < Vec < EthereumTrigger > > ( )
840
849
} ) ;
841
850
if trigger_every_block {
842
- triggers. push ( EthereumTrigger :: Block (
851
+ triggers. push ( dbg ! ( EthereumTrigger :: Block (
843
852
block_ptr,
844
853
EthereumBlockTriggerType :: Every ( block_type) ,
845
- ) ) ;
854
+ ) ) ) ;
846
855
}
847
856
triggers
848
857
}
You can’t perform that action at this time.
0 commit comments