@@ -159,8 +159,8 @@ impl SimulationResultBuilder {
159159 let mut builder = Self :: new ( ) ;
160160 builder. success = false ;
161161 builder. gas_used = None ;
162- builder. error = Some ( SimulationError :: Unknown {
163- message : "Test failure" . to_string ( )
162+ builder. error = Some ( SimulationError :: Unknown {
163+ message : "Test failure" . to_string ( ) ,
164164 } ) ;
165165 builder
166166 }
@@ -211,7 +211,11 @@ impl SimulationResultBuilder {
211211 }
212212
213213 pub fn with_invalid_nonce ( self , tx_index : usize , expected : u64 , actual : u64 ) -> Self {
214- self . with_error ( SimulationError :: InvalidNonce { tx_index, expected, actual } )
214+ self . with_error ( SimulationError :: InvalidNonce {
215+ tx_index,
216+ expected,
217+ actual,
218+ } )
215219 }
216220
217221 pub fn build ( self ) -> SimulationResult {
@@ -232,8 +236,8 @@ impl SimulationResultBuilder {
232236 self . block_number ,
233237 self . block_hash . unwrap_or_else ( B256 :: random) ,
234238 self . execution_time_us ,
235- self . error . unwrap_or ( SimulationError :: Unknown {
236- message : "Unknown error" . to_string ( )
239+ self . error . unwrap_or ( SimulationError :: Unknown {
240+ message : "Unknown error" . to_string ( ) ,
237241 } ) ,
238242 )
239243 }
@@ -268,13 +272,12 @@ impl ScenarioBuilder {
268272 }
269273
270274 pub fn add_simple_bundle ( mut self , num_txs : usize ) -> Self {
271- let mut builder = TestBundleBuilder :: new ( )
272- . with_block_number ( self . block_number ) ;
273-
275+ let mut builder = TestBundleBuilder :: new ( ) . with_block_number ( self . block_number ) ;
276+
274277 for i in 0 ..num_txs {
275278 builder = builder. with_simple_transaction ( & [ i as u8 , 0x01 , 0x02 ] ) ;
276279 }
277-
280+
278281 self . bundles . push ( builder. build ( ) ) ;
279282 self
280283 }
0 commit comments