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 2023-06-12 17:32:21 +02:00 committed by GitHub
commit 53c305ea80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,6 +410,7 @@ TestCase::TestResult SemanticTest::runTest(
test.setFailure(!m_transactionSuccessful); test.setFailure(!m_transactionSuccessful);
test.setRawBytes(std::move(output)); test.setRawBytes(std::move(output));
if (test.call().kind != FunctionCall::Kind::LowLevel)
test.setContractABI(m_compiler.contractABI(m_compiler.lastContractName(m_sources.mainSourceFile))); test.setContractABI(m_compiler.contractABI(m_compiler.lastContractName(m_sources.mainSourceFile)));
} }