Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ast_transform.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module = @
router_func_list = router_collector root, opt
root = add_router root, obj_merge {router_func_list}, opt

root = return_op_list_count root, opt
# root = return_op_list_count root, opt
root

ercs_translate = (root, opt) ->
Expand Down
3 changes: 3 additions & 0 deletions src/translate_ligo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@ walk = (root, ctx)->
type_str = type_list.join " * "
return "var #{config.op_list} : list(operation) := cons(#{arg_list[0]}, list transaction((#{arg_list[1..].join ' * '}), 0mutez, (get_contract(match_action.#{config.callback_address}) : contract(#{type_str})) end)"

when "transaction"
return "var #{config.op_list} : list(operation) = cons(transaction(#{arg_list.join ', '}), #{config.op_list})"

else
fn = root.fn.name
else
Expand Down