Pt 166696064 decode calldata fate #168

Merged
zxq9 merged 5 commits from PT-166696064-decode-calldata-fate into master 2019-06-20 20:05:44 +09:00
Showing only changes of commit e3f843fd91 - Show all commits

View File

@ -43,7 +43,7 @@ create_calldata(FunName, Args, ArgTypes0, RetType) ->
<<TypeHashInt:?HASH_SIZE/unit:8>> =
function_type_hash(list_to_binary(FunName), ArgTypes, RetType),
Data = aeb_heap:to_binary({TypeHashInt, list_to_tuple(Args)}),
{ok, Data, {tuple, [word, ArgTypes]}, RetType}.
{ok, Data}.
-spec check_calldata(binary(), type_info()) ->
{'ok', typerep(), typerep()} | {'error', atom()}.