diff --git a/src/proto_alpha/lib_client/injection.ml b/src/proto_alpha/lib_client/injection.ml index 0b5942495..2b7200d0b 100644 --- a/src/proto_alpha/lib_client/injection.ml +++ b/src/proto_alpha/lib_client/injection.ml @@ -147,7 +147,7 @@ let estimated_storage res = estimated_storage rest >>? fun storage2 -> Ok (Z.add storage1 storage2) in estimated_storage res >>? fun diff -> - Ok (max Z.zero diff) + Ok (Z.max Z.zero diff) let originated_contracts_single (type kind) diff --git a/src/proto_alpha/lib_protocol/src/helpers_services.ml b/src/proto_alpha/lib_protocol/src/helpers_services.ml index 971eb1461..7fea3a553 100644 --- a/src/proto_alpha/lib_protocol/src/helpers_services.ml +++ b/src/proto_alpha/lib_protocol/src/helpers_services.ml @@ -248,15 +248,15 @@ module Scripts = struct match protocol_data.contents with | Single (Manager_operation _) as op -> partial_precheck_manager_contents_list ctxt op >>=? fun ctxt -> - Apply.apply_manager_contents_list ctxt Readable baker op >>= fun (_ctxt, result) -> + Apply.apply_manager_contents_list ctxt Optimized baker op >>= fun (_ctxt, result) -> return result | Cons (Manager_operation _, _) as op -> partial_precheck_manager_contents_list ctxt op >>=? fun ctxt -> - Apply.apply_manager_contents_list ctxt Readable baker op >>= fun (_ctxt, result) -> + Apply.apply_manager_contents_list ctxt Optimized baker op >>= fun (_ctxt, result) -> return result | _ -> Apply.apply_contents_list - ctxt Readable shell.branch baker operation + ctxt Optimized shell.branch baker operation operation.protocol_data.contents >>=? fun (_ctxt, result) -> return result