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:
@@ -48,7 +48,7 @@ AnalysisFramework::parseAnalyseAndReturnError(
|
||||
)
|
||||
{
|
||||
m_compiler.reset();
|
||||
m_compiler.addSource("", _insertVersionPragma ? "pragma solidity >=0.0;\n" + _source : _source);
|
||||
m_compiler.setSources({{"", _insertVersionPragma ? "pragma solidity >=0.0;\n" + _source : _source}});
|
||||
m_compiler.setEVMVersion(dev::test::Options::get().evmVersion());
|
||||
if (!m_compiler.parse())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user