Do not return types, create_calldata does not need those

This commit is contained in:
Thomas Arts 2019-06-17 13:57:41 +02:00
parent 803ebc0854
commit e3f843fd91

View File

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