Fix gas mismatch in constructor not being counted as a failure

This commit is contained in:
Kamil Śliwak 2021-11-15 14:29:22 +01:00
parent 7334420423
commit cf52827107

View File

@ -407,7 +407,10 @@ TestCase::TestResult SemanticTest::runTest(
if (m_transactionSuccessful == test.call().expectations.failure)
success = false;
if (success && !checkGasCostExpectation(test, _isYulRun))
{
success = false;
m_gasCostFailure = true;
}
test.setFailure(!m_transactionSuccessful);
test.setRawBytes(bytes());