@@ -3,8 +3,9 @@ use std::{iter::zip, path::PathBuf, str::FromStr, sync::Arc, time::Duration};
33
44use alloy:: {
55 consensus:: {
6- Signed , Transaction as TraitTransaction , TxEip1559 , TxEip2930 ,
7- TxEip4844 , TxEip4844Variant , TxEnvelope , TxLegacy ,
6+ transaction:: Recovered , Signed , Transaction as TraitTransaction ,
7+ TxEip1559 , TxEip2930 , TxEip4844 , TxEip4844Variant , TxEnvelope ,
8+ TxLegacy ,
89 } ,
910 eips:: { BlockId , BlockNumberOrTag } ,
1011 hex:: { FromHex , FromHexError } ,
@@ -594,7 +595,7 @@ impl Database {
594595
595596 let tx_type = row. get :: < & str , u64 > ( "type" ) ?;
596597
597- let inner : TxEnvelope = match tx_type {
598+ let envelope : TxEnvelope = match tx_type {
598599 0 => TxEnvelope :: Legacy ( Signed :: new_unchecked (
599600 TxLegacy {
600601 chain_id : Some ( chain_id) ,
@@ -671,12 +672,14 @@ impl Database {
671672 } ;
672673
673674 Ok ( Transaction {
674- inner,
675+ inner : Recovered :: new_unchecked (
676+ envelope,
677+ row. get :: < & str , String > ( "from_address" ) ?. parse ( ) ?,
678+ ) ,
675679 block_hash : Some ( row. get :: < & str , String > ( "block_hash" ) ?. parse ( ) ?) ,
676680 block_number : Some ( row. get :: < & str , u64 > ( "block_number" ) ?) ,
677681 transaction_index : Some ( row. get :: < & str , u64 > ( "position" ) ?) ,
678682 effective_gas_price : None , /* deprecated */
679- from : row. get :: < & str , String > ( "from_address" ) ?. parse ( ) ?,
680683 } )
681684 }
682685
0 commit comments