File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,19 @@ func AdaptBlock(response *feeder.Block) (*core.Block, error) {
1919	}
2020
2121	txns  :=  make ([]core.Transaction , len (response .Transactions ))
22- 	receipts  :=  make ([]* core.TransactionReceipt , len (response .Receipts ))
23- 	eventCount  :=  uint64 (0 )
2422	for  i , txn  :=  range  response .Transactions  {
2523		var  err  error 
2624		txns [i ], err  =  AdaptTransaction (txn )
2725		if  err  !=  nil  {
2826			return  nil , err 
2927		}
30- 		receipts [i ] =  AdaptTransactionReceipt (response .Receipts [i ])
31- 		eventCount  +=  uint64 (len (response .Receipts [i ].Events ))
28+ 	}
29+ 
30+ 	receipts  :=  make ([]* core.TransactionReceipt , len (response .Receipts ))
31+ 	eventCount  :=  uint64 (0 )
32+ 	for  i , receipt  :=  range  response .Receipts  {
33+ 		receipts [i ] =  AdaptTransactionReceipt (receipt )
34+ 		eventCount  +=  uint64 (len (receipt .Events ))
3235	}
3336
3437	return  & core.Block {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments