Fix unpack_closure
This commit is contained in:
parent
7afa8a9cdb
commit
faf3bbc061
@ -73,15 +73,5 @@ let pack_closure : environment -> selector -> michelson result = fun e lst ->
|
|||||||
ok code
|
ok code
|
||||||
|
|
||||||
let unpack_closure : environment -> michelson result = fun e ->
|
let unpack_closure : environment -> michelson result = fun e ->
|
||||||
let lst =
|
let aux = fun code _ -> seq [ i_unpair ; dip code ] in
|
||||||
match e with
|
ok (List.fold_right' aux (seq []) e)
|
||||||
| [] -> []
|
|
||||||
| _ :: tl -> [
|
|
||||||
i_unpair ;
|
|
||||||
dip @@ seq @@ List.map (Function.constant i_unpair) tl ;
|
|
||||||
]
|
|
||||||
in
|
|
||||||
|
|
||||||
let code = seq lst in
|
|
||||||
|
|
||||||
ok code
|
|
||||||
|
Loading…
Reference in New Issue
Block a user