File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ use std::{
33 convert:: TryFrom ,
44 fmt:: Debug ,
55 net:: SocketAddr ,
6- ops:: Div ,
76 path:: PathBuf ,
87 str:: FromStr ,
98 sync:: {
@@ -2836,7 +2835,12 @@ async fn get_drt_query_params(dr_tx_hash: Hash) -> Result<DataRequestQueryParams
28362835 . unwrap_or_default ( ) ;
28372836
28382837 Ok ( DataRequestQueryParams {
2839- collateral_ratio : dr_tx. body . dr_output . collateral . div_ceil ( dr_tx. body . dr_output . witness_reward ) as u16 ,
2838+ collateral_ratio : dr_tx
2839+ . body
2840+ . dr_output
2841+ . collateral
2842+ . div_ceil ( dr_tx. body . dr_output . witness_reward )
2843+ as u16 ,
28402844 dro_hash : dr_tx. body . dr_output . hash ( ) ,
28412845 rad_hash : calculate_sha256 ( & bytecode) . into ( ) ,
28422846 rad_bytecode : hex:: encode ( & bytecode) ,
@@ -2863,7 +2867,12 @@ async fn get_drt_query_params(dr_tx_hash: Hash) -> Result<DataRequestQueryParams
28632867 . unwrap_or_default ( ) ;
28642868
28652869 Ok ( DataRequestQueryParams {
2866- collateral_ratio : dr_tx. body . dr_output . collateral . div_ceil ( dr_tx. body . dr_output . witness_reward ) as u16 ,
2870+ collateral_ratio : dr_tx
2871+ . body
2872+ . dr_output
2873+ . collateral
2874+ . div_ceil ( dr_tx. body . dr_output . witness_reward )
2875+ as u16 ,
28672876 dro_hash : dr_tx. body . dr_output . hash ( ) ,
28682877 rad_hash : calculate_sha256 ( & bytecode) . into ( ) ,
28692878 rad_bytecode : hex:: encode ( & bytecode) ,
You can’t perform that action at this time.
0 commit comments