File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
anvil/src/eth/backend/mem
evm/evm/src/executors/invariant Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -2151,7 +2151,9 @@ impl Backend {
21512151 if let Some ( fork) = self . get_fork ( ) {
21522152 let number = self . convert_block_number ( Some ( number) ) ;
21532153 if fork. predates_fork ( number) {
2154- return Ok ( fork. transaction_by_block_number_and_index ( number, index. into ( ) ) . await ?) ;
2154+ return Ok ( fork
2155+ . transaction_by_block_number_and_index ( number, index. into ( ) )
2156+ . await ?) ;
21552157 }
21562158 }
21572159
@@ -2207,7 +2209,10 @@ impl Backend {
22072209 }
22082210
22092211 if let Some ( fork) = self . get_fork ( ) {
2210- return fork. transaction_by_hash ( hash) . await . map_err ( BlockchainError :: AlloyForkProvider ) ;
2212+ return fork
2213+ . transaction_by_hash ( hash)
2214+ . await
2215+ . map_err ( BlockchainError :: AlloyForkProvider ) ;
22112216 }
22122217
22132218 Ok ( None )
Original file line number Diff line number Diff line change @@ -120,7 +120,10 @@ impl InferInlineHyperlinks {
120120 ParseSource :: Event ( ev) => {
121121 let ev_name = & ev. name . safe_unwrap ( ) . name ;
122122 if ev_name == link. ref_name ( ) {
123- return Some ( InlineLinkTarget :: borrowed ( ev_name, target_path. to_path_buf ( ) ) ) ;
123+ return Some ( InlineLinkTarget :: borrowed (
124+ ev_name,
125+ target_path. to_path_buf ( ) ,
126+ ) ) ;
124127 }
125128 }
126129 ParseSource :: Error ( err) => {
Original file line number Diff line number Diff line change @@ -338,7 +338,9 @@ impl<'a> InvariantExecutor<'a> {
338338 invariant_test. set_error ( InvariantFuzzError :: MaxAssumeRejects (
339339 self . config . max_assume_rejects ,
340340 ) ) ;
341- return Err ( TestCaseError :: fail ( "Max number of vm.assume rejects reached." ) ) ;
341+ return Err ( TestCaseError :: fail (
342+ "Max number of vm.assume rejects reached." ,
343+ ) ) ;
342344 }
343345 } else {
344346 // Collect data for fuzzing from the state changeset.
You can’t perform that action at this time.
0 commit comments