Revert "Use unlimited gas for typechecking contract"

This reverts commit 97aad1c5ea65375d464a278495cb3dc696c28c70.
This commit is contained in:
Tom Jack 2020-03-05 10:27:25 -06:00
parent cc83aa1367
commit 1e77bd82c8

View File

@ -1111,8 +1111,7 @@ type typecheck_res =
let typecheck_contract contract =
let contract' = Tezos_micheline.Micheline.strip_locations contract in
let ctxt = Raw_context.set_gas_unlimited dummy_environment.tezos_context in
Script_ir_translator.typecheck_code ctxt contract' >>= fun x ->
Script_ir_translator.typecheck_code dummy_environment.tezos_context contract' >>= fun x ->
match x with
| Ok _res -> return Type_checked
| Error (Script_tc_errors.Ill_formed_type (Some "parameter", _code, _)::_) -> return Err_parameter