@@ -595,7 +595,7 @@ where
595
595
EthereumTransactionData < ' a > : ToAscObj < T > ,
596
596
EthereumBlockData < ' a > : ToAscObj < B > ,
597
597
Inner : Send + Sync ,
598
- for < ' b > & ' b TransactionReceipt < Inner > : ToAscObj < AscEthereumTransactionReceipt > ,
598
+ TransactionReceipt < Inner > : ToAscObj < AscEthereumTransactionReceipt > ,
599
599
{
600
600
fn to_asc_obj < H : AscHeap + ?Sized > (
601
601
& self ,
@@ -673,51 +673,8 @@ impl ToAscObj<AscEthereumLog> for Log {
673
673
}
674
674
}
675
675
676
- impl ToAscObj < AscEthereumTransactionReceipt > for & alloy:: rpc:: types:: TransactionReceipt {
677
- fn to_asc_obj < H : AscHeap + ?Sized > (
678
- & self ,
679
- heap : & mut H ,
680
- gas : & GasCounter ,
681
- ) -> Result < AscEthereumTransactionReceipt , HostExportError > {
682
- Ok ( AscEthereumTransactionReceipt {
683
- transaction_hash : asc_new ( heap, & self . transaction_hash , gas) ?,
684
- transaction_index : asc_new (
685
- heap,
686
- & BigInt :: from (
687
- self . transaction_index
688
- . ok_or ( HostExportError :: Unknown ( anyhow ! (
689
- "Transaction index is missing"
690
- ) ) ) ?,
691
- ) ,
692
- gas,
693
- ) ?,
694
- block_hash : self
695
- . block_hash
696
- . map ( |block_hash| asc_new ( heap, & block_hash, gas) )
697
- . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
698
- block_number : self
699
- . block_number
700
- . map ( |block_number| asc_new ( heap, & BigInt :: from ( block_number) , gas) )
701
- . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
702
- cumulative_gas_used : asc_new ( heap, & BigInt :: from ( self . gas_used ) , gas) ?,
703
- gas_used : asc_new ( heap, & BigInt :: from ( self . gas_used ) , gas) ?,
704
- contract_address : self
705
- . contract_address
706
- . map ( |contract_address| asc_new ( heap, & contract_address, gas) )
707
- . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
708
- logs : asc_new ( heap, & self . logs ( ) , gas) ?,
709
- status : asc_new ( heap, & BigInt :: from ( self . status ( ) as u64 ) , gas) ?,
710
- root : self
711
- . state_root ( )
712
- . map ( |root| asc_new ( heap, & root, gas) )
713
- . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
714
- logs_bloom : asc_new ( heap, self . inner . logs_bloom ( ) . as_slice ( ) , gas) ?,
715
- } )
716
- }
717
- }
718
-
719
676
impl ToAscObj < AscEthereumTransactionReceipt >
720
- for & TransactionReceipt < alloy:: network:: AnyReceiptEnvelope < Log > >
677
+ for TransactionReceipt < alloy:: network:: AnyReceiptEnvelope < Log > >
721
678
{
722
679
fn to_asc_obj < H : AscHeap + ?Sized > (
723
680
& self ,
0 commit comments