@@ -564,7 +564,9 @@ pub fn call_function<'a, 'b, 'c>(
564
564
565
565
// Call the function
566
566
func. call ( & mut store, & wasm_args, & mut results)
567
- . map_err ( |e| error_mapping:: resolve_error ( e, instance, & mut store, & epoch, & clarity_version) ) ?;
567
+ . map_err ( |e| {
568
+ error_mapping:: resolve_error ( e, instance, & mut store, & epoch, & clarity_version)
569
+ } ) ?;
568
570
569
571
// If the function returns a value, translate it into a Clarity `Value`
570
572
wasm_to_clarity_value ( & return_type, 0 , & results, memory, & mut & mut store, epoch)
@@ -7876,7 +7878,8 @@ mod error_mapping {
7876
7878
Error :: Runtime ( RuntimeErrorType :: UnwrapFailure , Some ( Vec :: new ( ) ) )
7877
7879
}
7878
7880
ErrorMap :: ShortReturnAssertionFailure => {
7879
- let clarity_val = short_return_value ( & instance, & mut store, epoch_id, clarity_version) ;
7881
+ let clarity_val =
7882
+ short_return_value ( & instance, & mut store, epoch_id, clarity_version) ;
7880
7883
Error :: ShortReturn ( ShortReturnType :: AssertionFailed ( clarity_val) )
7881
7884
}
7882
7885
ErrorMap :: ArithmeticPowError => Error :: Runtime (
@@ -7903,7 +7906,8 @@ mod error_mapping {
7903
7906
Error :: Unchecked ( CheckErrors :: NameAlreadyUsed ( arg_name) )
7904
7907
}
7905
7908
ErrorMap :: ShortReturnExpectedValueResponse => {
7906
- let clarity_val = short_return_value ( & instance, & mut store, epoch_id, clarity_version) ;
7909
+ let clarity_val =
7910
+ short_return_value ( & instance, & mut store, epoch_id, clarity_version) ;
7907
7911
Error :: ShortReturn ( ShortReturnType :: ExpectedValue ( Value :: Response (
7908
7912
ResponseData {
7909
7913
committed : false ,
@@ -7917,7 +7921,8 @@ mod error_mapping {
7917
7921
) ) )
7918
7922
}
7919
7923
ErrorMap :: ShortReturnExpectedValue => {
7920
- let clarity_val = short_return_value ( & instance, & mut store, epoch_id, clarity_version) ;
7924
+ let clarity_val =
7925
+ short_return_value ( & instance, & mut store, epoch_id, clarity_version) ;
7921
7926
Error :: ShortReturn ( ShortReturnType :: ExpectedValue ( clarity_val) )
7922
7927
}
7923
7928
_ => panic ! ( "Runtime error code {} not supported" , runtime_error_code) ,
0 commit comments