Pt 166696064 add calldata decode #582

Merged
zxq9 merged 8 commits from PT-166696064-add-calldata-decode into master 2019-06-20 21:26:45 +09:00
Showing only changes of commit c745827c53 - Show all commits

View File

@ -104,7 +104,7 @@ from_fate({variant_t, Cons}, {variant, Ar, Tag, Args})
Arity = lists:nth(Tag + 1, Ar), Arity = lists:nth(Tag + 1, Ar),
case tuple_to_list(Args) of case tuple_to_list(Args) of
ArgList when length(ArgList) == Arity -> ArgList when length(ArgList) == Arity ->
from_fate(ConType, tuple_to_list(Args)); from_fate(ConType, ArgList);
_ -> throw(cannot_translate_to_sophia) _ -> throw(cannot_translate_to_sophia)
end; end;
from_fate({constr_t, _, Con, Types}, Args) from_fate({constr_t, _, Con, Types}, Args)