diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 04:49:58 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-19 06:54:32 +0800 |
commit | 2ce35b77becab2395dce218b106a7ce904a1b141 (patch) | |
tree | a495989b6c5eabeb1620bc71fef36fad252e6d6c /test/libsolidity/SolidityABIJSON.cpp | |
parent | 039cc25b1fd875e9f4cfd0f0649f2b4ed67640e1 (diff) | |
download | dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.gz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.bz2 dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.lz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.xz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.zst dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.zip |
Implement CompilerStack.lastContractName()
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityABIJSON.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp index 42f7525f..33962730 100644 --- a/test/libsolidity/SolidityABIJSON.cpp +++ b/test/libsolidity/SolidityABIJSON.cpp @@ -46,7 +46,7 @@ public: m_compilerStack.addSource("", "pragma solidity >=0.0;\n" + _code); BOOST_REQUIRE_MESSAGE(m_compilerStack.parseAndAnalyze(), "Parsing contract failed"); - Json::Value generatedInterface = m_compilerStack.contractABI(""); + Json::Value generatedInterface = m_compilerStack.contractABI(m_compilerStack.lastContractName()); Json::Value expectedInterface; BOOST_REQUIRE(m_reader.parse(_expectedInterfaceString, expectedInterface)); BOOST_CHECK_MESSAGE( |