@@ -39,7 +39,6 @@ use graph::prelude::{
3939 } ,
4040 transports:: { RpcError , TransportErrorKind } ,
4141 } ,
42- alloy_log_to_web3_log, h256_to_b256,
4342 tokio:: try_join,
4443} ;
4544use graph:: slog:: o;
@@ -568,7 +567,7 @@ impl EthereumAdapter {
568567 if !self . supports_eip_1898 {
569568 alloy:: rpc:: types:: BlockId :: number ( block_ptr. number as u64 )
570569 } else {
571- alloy:: rpc:: types:: BlockId :: hash ( block_ptr. hash_as_b256 ( ) )
570+ alloy:: rpc:: types:: BlockId :: hash ( block_ptr. hash . as_b256 ( ) )
572571 }
573572 }
574573
@@ -1692,7 +1691,7 @@ pub(crate) async fn blocks_with_triggers(
16921691 debug ! ( logger, "Finding nearest valid `to` block to {}" , to) ;
16931692
16941693 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 ( ) ;
16961695 let to = to_ptr. block_number ( ) ;
16971696
16981697 // 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(
20772076 // We'll also need the receipts for those transactions. In this step we collect all receipts
20782077 // we have in store for the current block.
20792078 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 ( ) )
20812080 . await ?
20822081 . into_iter ( )
20832082 . map ( |receipt| ( receipt. transaction_hash , receipt) )
0 commit comments