@@ -23,7 +23,7 @@ use crate::{
2323 peg_in:: { PegInDepositorStatus , PegInVerifierStatus } ,
2424 peg_out:: { CommitmentMessageId , PegOutOperatorStatus } ,
2525 } ,
26- scripts:: generate_pay_to_pubkey_script_address
26+ scripts:: generate_pay_to_pubkey_script_address,
2727} ;
2828
2929use bitvm:: signatures:: signing_winternitz:: WinternitzSecret ;
@@ -202,21 +202,13 @@ impl BitVMClient {
202202 }
203203 }
204204
205- pub fn get_data ( & self ) -> & BitVMClientPublicData {
206- & self . data
207- }
205+ pub fn get_data ( & self ) -> & BitVMClientPublicData { & self . data }
208206
209- pub async fn sync ( & mut self ) {
210- self . read ( ) . await ;
211- }
207+ pub async fn sync ( & mut self ) { self . read ( ) . await ; }
212208
213- pub async fn sync_l2 ( & mut self ) {
214- self . read_from_l2 ( ) . await ;
215- }
209+ pub async fn sync_l2 ( & mut self ) { self . read_from_l2 ( ) . await ; }
216210
217- pub async fn flush ( & mut self ) {
218- self . save ( ) . await ;
219- }
211+ pub async fn flush ( & mut self ) { self . save ( ) . await ; }
220212
221213 /*
222214 File syncing flow with data store
@@ -1102,7 +1094,6 @@ impl BitVMClient {
11021094 . unwrap ( )
11031095 . challenge (
11041096 & self . esplora ,
1105- self . depositor_context . as_ref ( ) . unwrap ( ) ,
11061097 crowdfundng_inputs,
11071098 & self . depositor_context . as_ref ( ) . unwrap ( ) . depositor_keypair ,
11081099 output_script_pubkey,
@@ -1113,7 +1104,6 @@ impl BitVMClient {
11131104 . unwrap ( )
11141105 . challenge (
11151106 & self . esplora ,
1116- self . operator_context . as_ref ( ) . unwrap ( ) ,
11171107 crowdfundng_inputs,
11181108 & self . operator_context . as_ref ( ) . unwrap ( ) . operator_keypair ,
11191109 output_script_pubkey,
@@ -1124,7 +1114,6 @@ impl BitVMClient {
11241114 . unwrap ( )
11251115 . challenge (
11261116 & self . esplora ,
1127- self . verifier_context . as_ref ( ) . unwrap ( ) ,
11281117 crowdfundng_inputs,
11291118 & self . verifier_context . as_ref ( ) . unwrap ( ) . verifier_keypair ,
11301119 output_script_pubkey,
@@ -1135,7 +1124,6 @@ impl BitVMClient {
11351124 . unwrap ( )
11361125 . challenge (
11371126 & self . esplora ,
1138- self . withdrawer_context . as_ref ( ) . unwrap ( ) ,
11391127 crowdfundng_inputs,
11401128 & self . withdrawer_context . as_ref ( ) . unwrap ( ) . withdrawer_keypair ,
11411129 output_script_pubkey,
0 commit comments