@@ -76,11 +76,10 @@ impl Consensus for SystemContractConsensus {
7676#[ cfg( test) ]
7777mod tests {
7878 use super :: * ;
79- use alloy_consensus:: TxEip1559 ;
79+ use alloy_consensus:: { Signed , TxEip1559 } ;
8080 use alloy_primitives:: { address, b256, bloom, bytes, TxKind , B64 , U256 } ;
8181 use reth_primitives_traits:: Header ;
82- use reth_scroll_primitives:: { ScrollBlockBody , ScrollTransactionSigned } ;
83- use scroll_alloy_consensus:: ScrollTypedTransaction ;
82+ use reth_scroll_primitives:: ScrollBlockBody ;
8483 use std:: { str:: FromStr , sync:: OnceLock } ;
8584
8685 #[ test]
@@ -119,11 +118,8 @@ mod tests {
119118 requests_hash : None ,
120119 } ,
121120 body : ScrollBlockBody {
122- transactions : vec ! [ ScrollTransactionSigned {
123- hash: tx_hash,
124- signature:
125- Signature :: new( U256 :: from_str( "12217337930795921874768983252881296563512928283585900928219483692173266513447" ) . unwrap( ) , U256 :: from_str( "37490897792770890087946325233571758133021734266092518377537449521790010698782" ) . unwrap( ) , true ) ,
126- transaction: ScrollTypedTransaction :: Eip1559 ( TxEip1559 {
121+ transactions : vec ! [
122+ Signed :: new_unhashed( TxEip1559 {
127123 chain_id: 534352 ,
128124 nonce: 145014 ,
129125 gas_limit: 600000 ,
@@ -133,13 +129,11 @@ mod tests {
133129 value: U256 :: ZERO ,
134130 access_list: Default :: default ( ) ,
135131 input: bytes!( "a00597a00000000000000000000000000000000000000000000000000000000001826cbe0000000000000000000000000000000000005eb6831c1aa0faf2055c7d53270e00000000000000000000000006efdbff2a14a7c8e15944d1f4a48f9f95f663a40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000813df550a32d4a9d42010d057386429ad2328ed9000000000000000000000000000000000000000000000000000000006807befd" ) ,
136- } ) ,
137- } ] ,
132+ } , Signature :: new( U256 :: from_str( "12217337930795921874768983252881296563512928283585900928219483692173266513447" ) . unwrap( ) , U256 :: from_str( "37490897792770890087946325233571758133021734266092518377537449521790010698782" ) . unwrap( ) , true ) ) . into( ) ] ,
138133 ommers : vec ! [ ] ,
139134 withdrawals : None ,
140135 } ,
141136 } ;
142-
143137 consensus. validate_new_block ( & block, & signature) . unwrap ( )
144138 }
145139}
0 commit comments