Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Convert vector<uint8_t> to bytes in ABI #863

Merged
merged 2 commits into from
Jul 10, 2020
Merged
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
6 changes: 5 additions & 1 deletion tools/include/eosio/gen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,11 @@ struct generation_utils {
}
else if ( is_template_specialization( type, {"vector", "set", "deque", "list"} ) ) {
auto t =translate_type(get_template_argument( type ).getAsType());
return t=="int8" ? "bytes" : t+"[]";
if ( t=="int8" || t=="uint8" ) {
return "bytes";
} else {
return t+"[]";
}
}
else if ( is_template_specialization( type, {"optional"} ) )
return translate_type(get_template_argument( type ).getAsType())+"?";
Expand Down