aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/ABI.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-01 19:37:40 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-16 19:31:12 +0800
commitc5063d315583270e88a01a0a82a84a68190f6ba1 (patch)
treeba738fb253932ad7cb81bae6d27352aa06de4c7f /libsolidity/interface/ABI.cpp
parent70d70e78160069d28a6b4931c995d0b24c2b09d5 (diff)
downloaddexon-solidity-c5063d315583270e88a01a0a82a84a68190f6ba1.tar.gz
dexon-solidity-c5063d315583270e88a01a0a82a84a68190f6ba1.tar.zst
dexon-solidity-c5063d315583270e88a01a0a82a84a68190f6ba1.zip
Use "tuple" for struct types in ABI JSON.
Only use tuple as a type in the ABI (and remove all "anonymous struct" references too)
Diffstat (limited to 'libsolidity/interface/ABI.cpp')
-rw-r--r--libsolidity/interface/ABI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/ABI.cpp b/libsolidity/interface/ABI.cpp
index 9af7cdc3..aefb34af 100644
--- a/libsolidity/interface/ABI.cpp
+++ b/libsolidity/interface/ABI.cpp
@@ -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))
{