Do not let low-level semantic test calls depend on a well-defined contract ABI.

This commit is contained in:
Daniel Kirchner 2023-06-07 13:40:14 +02:00
parent 811b8e565b
commit 0ea06e1c71

View File

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