mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use setSource in tests
This commit is contained in:
@@ -40,8 +40,8 @@ class JSONInterfaceChecker
|
||||
public:
|
||||
void checkInterface(std::string const& _code, std::string const& _contractName, std::string const& _expectedInterfaceString)
|
||||
{
|
||||
m_compilerStack.reset(false);
|
||||
m_compilerStack.addSource("", "pragma solidity >=0.0;\n" + _code);
|
||||
m_compilerStack.reset();
|
||||
m_compilerStack.setSources({{"", "pragma solidity >=0.0;\n" + _code}});
|
||||
m_compilerStack.setEVMVersion(dev::test::Options::get().evmVersion());
|
||||
m_compilerStack.setOptimiserSettings(dev::test::Options::get().optimize);
|
||||
BOOST_REQUIRE_MESSAGE(m_compilerStack.parseAndAnalyze(), "Parsing contract failed");
|
||||
|
||||
Reference in New Issue
Block a user