Merge pull request #14310 from ethereum/moreRobustSemanticsTests

Do not let low-level semantic test calls depend on a well-defined contract ABI.
This commit is contained in:
Daniel authored and GitHub committed 2023-06-12 17:32:21 +02:00
commit 53c305ea80
1 file changed
+2 -1
+2 -1
View File
@@ -410,7 +410,8 @@ TestCase::TestResult SemanticTest::runTest(
test.setFailure(!m_transactionSuccessful);
test.setRawBytes(std::move(output));
test.setContractABI(m_compiler.contractABI(m_compiler.lastContractName(m_sources.mainSourceFile)));
if (test.call().kind != FunctionCall::Kind::LowLevel)
test.setContractABI(m_compiler.contractABI(m_compiler.lastContractName(m_sources.mainSourceFile)));
}
vector<string> effects;