aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-16 01:20:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-16 01:20:30 +0800
commit9205662de9416ab160db7327a6022ea8b1fba3e1 (patch)
treedff81203a4dbe1c76803c6fe47d9a7f7bd386f3c /test/libsolidity/SolidityABIJSON.cpp
parent9719cf38e662e428ace8f3ebce9774a5338f0ce5 (diff)
downloaddexon-solidity-9205662de9416ab160db7327a6022ea8b1fba3e1.tar.gz
dexon-solidity-9205662de9416ab160db7327a6022ea8b1fba3e1.tar.zst
dexon-solidity-9205662de9416ab160db7327a6022ea8b1fba3e1.zip
Update tests to use JSON
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r--test/libsolidity/SolidityABIJSON.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp
index 073d7d97..0566f253 100644
--- a/test/libsolidity/SolidityABIJSON.cpp
+++ b/test/libsolidity/SolidityABIJSON.cpp
@@ -40,9 +40,7 @@ public:
void checkInterface(std::string const& _code, std::string const& _expectedInterfaceString)
{
ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parse("pragma solidity >=0.0;\n" + _code), "Parsing contract failed");
- std::string generatedInterfaceString = m_compilerStack.metadata("", DocumentationType::ABIInterface);
- Json::Value generatedInterface;
- m_reader.parse(generatedInterfaceString, generatedInterface);
+ Json::Value generatedInterface = m_compilerStack.metadata("", DocumentationType::ABIInterface);
Json::Value expectedInterface;
m_reader.parse(_expectedInterfaceString, expectedInterface);
BOOST_CHECK_MESSAGE(