@@ -39,7 +39,6 @@ use graph::prelude::{
39
39
} ,
40
40
transports:: { RpcError , TransportErrorKind } ,
41
41
} ,
42
- alloy_log_to_web3_log, h256_to_b256,
43
42
tokio:: try_join,
44
43
} ;
45
44
use graph:: slog:: o;
@@ -568,7 +567,7 @@ impl EthereumAdapter {
568
567
if !self . supports_eip_1898 {
569
568
alloy:: rpc:: types:: BlockId :: number ( block_ptr. number as u64 )
570
569
} else {
571
- alloy:: rpc:: types:: BlockId :: hash ( block_ptr. hash_as_b256 ( ) )
570
+ alloy:: rpc:: types:: BlockId :: hash ( block_ptr. hash . as_b256 ( ) )
572
571
}
573
572
}
574
573
@@ -1692,7 +1691,7 @@ pub(crate) async fn blocks_with_triggers(
1692
1691
debug ! ( logger, "Finding nearest valid `to` block to {}" , to) ;
1693
1692
1694
1693
let to_ptr = eth. next_existing_ptr_to_number ( & logger, to) . await ?;
1695
- let to_hash = to_ptr. hash_as_b256 ( ) ;
1694
+ let to_hash = to_ptr. hash . as_b256 ( ) ;
1696
1695
let to = to_ptr. block_number ( ) ;
1697
1696
1698
1697
// This is for `start` triggers which can be initialization handlers which needs to be run
@@ -2077,7 +2076,7 @@ async fn filter_call_triggers_from_unsuccessful_transactions(
2077
2076
// We'll also need the receipts for those transactions. In this step we collect all receipts
2078
2077
// we have in store for the current block.
2079
2078
let mut receipts: BTreeMap < B256 , LightTransactionReceipt > = chain_store
2080
- . transaction_receipts_in_block ( & block. ptr ( ) . hash_as_b256 ( ) )
2079
+ . transaction_receipts_in_block ( & block. ptr ( ) . hash . as_b256 ( ) )
2081
2080
. await ?
2082
2081
. into_iter ( )
2083
2082
. map ( |receipt| ( receipt. transaction_hash , receipt) )
0 commit comments