mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add sanity check into SemanticTest for not allowing ABIEncoderV1Only and compileViaYul together
This commit is contained in:
parent
324caef53c
commit
bb7f500bb1
@ -99,6 +99,14 @@ SemanticTest::SemanticTest(
|
||||
if (m_runWithABIEncoderV1Only && !solidity::test::CommonOptions::get().useABIEncoderV1)
|
||||
m_shouldRun = false;
|
||||
|
||||
// Sanity check
|
||||
if (m_runWithABIEncoderV1Only && (compileViaYul == "true" || compileViaYul == "also"))
|
||||
BOOST_THROW_EXCEPTION(runtime_error(
|
||||
"ABIEncoderV1Only can not be used with compileViaYul=" + compileViaYul +
|
||||
", set it to false or omit the flag. The compileViaYul setting ignores the abicoder pragma"
|
||||
" and runs everything with ABICoder V2."
|
||||
));
|
||||
|
||||
auto revertStrings = revertStringsFromString(m_reader.stringSetting("revertStrings", "default"));
|
||||
soltestAssert(revertStrings, "Invalid revertStrings setting.");
|
||||
m_revertStrings = revertStrings.value();
|
||||
|
Loading…
Reference in New Issue
Block a user