@@ -6,26 +6,22 @@ use crate::{
66use alloy:: {
77 consensus:: { constants:: GWEI_TO_WEI , SimpleCoder } ,
88 eips:: BlockNumberOrTag ,
9- network:: { TransactionBuilder , TransactionBuilder4844 } ,
10- providers:: SendableTx ,
11- providers:: { Provider as _, WalletProvider } ,
9+ network:: TransactionBuilder ,
10+ network:: TransactionBuilder4844 ,
11+ primitives:: { FixedBytes , U256 } ,
12+ providers:: { Provider as _, SendableTx , WalletProvider } ,
1213 rpc:: types:: eth:: TransactionRequest ,
1314 signers:: Signer ,
14- sol_types:: SolCall ,
15+ sol_types:: { SolCall , SolError } ,
1516 transports:: TransportError ,
1617} ;
17- use alloy_primitives:: { FixedBytes , U256 } ;
18- use alloy_sol_types:: SolError ;
1918use eyre:: { bail, eyre} ;
2019use metrics:: { counter, histogram} ;
2120use oauth2:: TokenResponse ;
2221use std:: time:: Instant ;
2322use tokio:: { sync:: mpsc, task:: JoinHandle } ;
2423use tracing:: { debug, error, instrument, trace} ;
25- use zenith_types:: {
26- SignRequest , SignResponse ,
27- Zenith :: { self , IncorrectHostBlock } ,
28- } ;
24+ use zenith_types:: { SignRequest , SignResponse , Zenith , Zenith :: IncorrectHostBlock } ;
2925
3026macro_rules! spawn_provider_send {
3127 ( $provider: expr, $tx: expr) => {
@@ -138,7 +134,7 @@ impl SubmitTask {
138134 resp : & SignResponse ,
139135 in_progress : & InProgressBlock ,
140136 ) -> eyre:: Result < ControlFlow > {
141- let v: u8 = resp. sig . v ( ) . y_parity_byte ( ) + 27 ;
137+ let v = resp. sig . v ( ) . into ( ) ;
142138 let r: FixedBytes < 32 > = resp. sig . r ( ) . into ( ) ;
143139 let s: FixedBytes < 32 > = resp. sig . s ( ) . into ( ) ;
144140
0 commit comments