File tree 2 files changed +7
-3
lines changed
stackslib/src/clarity_vm/tests
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -217,8 +217,7 @@ impl DefaultVersion {
217
217
} ;
218
218
219
219
CostErrors :: CostComputationFailed ( format ! (
220
- "Error evaluating result of cost function {}: {e}" ,
221
- & cost_function_ref. function_name
220
+ "Error evaluating result of cost function {cost_function_ref}: {e}" ,
222
221
) )
223
222
} )
224
223
}
Original file line number Diff line number Diff line change @@ -892,7 +892,12 @@ fn eval_cost_fn(
892
892
. eval_read_only ( & boot_costs_id, & exec)
893
893
. map ( |( value, _, _) | Some ( value) ) ;
894
894
895
- parse_cost ( cost_fn_name, exec_result)
895
+ let clarity_cost_fn_ref = ClarityCostFunctionReference {
896
+ contract_id : boot_costs_id,
897
+ function_name : cost_fn_name. to_string ( ) ,
898
+ } ;
899
+
900
+ parse_cost ( & clarity_cost_fn_ref. to_string ( ) , exec_result)
896
901
}
897
902
898
903
fn eval_replaced_cost_fn (
You can’t perform that action at this time.
0 commit comments