Use "tuple" for struct types in ABI JSON.

Only use tuple as a type in the ABI (and remove all "anonymous struct" references too)
This commit is contained in:
chriseth
2017-09-16 12:31:12 +01:00
committed by Alex Beregszaszi
parent 70d70e7816
commit c5063d3155
4 changed files with 52 additions and 27 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ Json::Value ABI::formatType(string const& _name, Type const& _type, bool _forLib
}
else if (StructType const* structType = dynamic_cast<StructType const*>(&_type))
{
ret["type"] = string();
ret["type"] = "tuple";
ret["components"] = Json::arrayValue;
for (auto const& member: structType->members(nullptr))
{