@@ -2,12 +2,12 @@ use crate::{
22 config:: { Provider , ZenithInstance } ,
33 signer:: LocalOrAws ,
44 tasks:: block:: InProgressBlock ,
5+ utils:: extract_signature_components,
56} ;
67use alloy:: {
78 consensus:: { constants:: GWEI_TO_WEI , SimpleCoder } ,
89 eips:: BlockNumberOrTag ,
9- network:: TransactionBuilder ,
10- network:: TransactionBuilder4844 ,
10+ network:: { TransactionBuilder , TransactionBuilder4844 } ,
1111 primitives:: { FixedBytes , U256 } ,
1212 providers:: { Provider as _, SendableTx , WalletProvider } ,
1313 rpc:: types:: eth:: TransactionRequest ,
@@ -134,9 +134,7 @@ impl SubmitTask {
134134 resp : & SignResponse ,
135135 in_progress : & InProgressBlock ,
136136 ) -> eyre:: Result < ControlFlow > {
137- let v = resp. sig . v ( ) . into ( ) ;
138- let r: FixedBytes < 32 > = resp. sig . r ( ) . into ( ) ;
139- let s: FixedBytes < 32 > = resp. sig . s ( ) . into ( ) ;
137+ let ( v, r, s) = extract_signature_components ( & resp. sig ) ;
140138
141139 let header = Zenith :: BlockHeader {
142140 hostBlockNumber : resp. req . host_block_number ,
0 commit comments