diff --git a/src/proto_alpha/lib_protocol/src/script_interpreter.ml b/src/proto_alpha/lib_protocol/src/script_interpreter.ml index 5c569f123..b36de4035 100644 --- a/src/proto_alpha/lib_protocol/src/script_interpreter.ml +++ b/src/proto_alpha/lib_protocol/src/script_interpreter.ml @@ -187,7 +187,7 @@ let rec interp log := (descr.loc, Gas.level ctxt, stack) :: !log ; return (ret, ctxt) in let get_log (log : execution_trace ref option) = - Option.map ~f:(!) log in + Option.map ~f:(fun l -> List.rev !l) log in let consume_gas_terop : type ret arg1 arg2 arg3 rest. (_ * (_ * (_ * rest)), ret * rest) descr -> ((arg1 -> arg2 -> arg3 -> ret) * arg1 * arg2 * arg3) ->