From 2e72bd163a149183c119ca9664b98b0c5473da41 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 24 Jan 2017 12:44:49 +0100 Subject: Allow structs as part of function interfaces. --- libsolidity/interface/ABI.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libsolidity/interface/ABI.h') diff --git a/libsolidity/interface/ABI.h b/libsolidity/interface/ABI.h index 95b162a9..7e42909b 100644 --- a/libsolidity/interface/ABI.h +++ b/libsolidity/interface/ABI.h @@ -50,6 +50,10 @@ private: std::vector const& _types, bool _forLibrary ); + /// @returns a Json object with "name", "type" and potentially "subtype" keys, according + /// to the ABI specification. + /// If it is possible to express the type as a single string, it is allowed to return a single string. + static Json::Value formatType(std::string const& _name, Type const& _type, bool _forLibrary); }; } -- cgit v1.2.3