add unparse_ty to ligo-utils (thanks alpha monad)

This commit is contained in:
Lesenechal Remi 2019-12-04 02:05:24 +01:00
parent fec4cc9c45
commit 385961503f

View File

@ -1096,6 +1096,10 @@ let interpret ?(options = default_options) (instr:('a, 'b) descr) (bef:'a stack)
Script_interpreter.step tezos_context step_constants instr bef >>=?? Script_interpreter.step tezos_context step_constants instr bef >>=??
fun (stack, _) -> return stack fun (stack, _) -> return stack
let unparse_ty_michelson ty =
Script_ir_translator.unparse_ty dummy_environment.tezos_context ty >>=??
fun (n,_) -> return n
type 'a interpret_res = type 'a interpret_res =
| Succeed of 'a stack | Succeed of 'a stack
| Fail of Script_repr.expr | Fail of Script_repr.expr