Skip to content

Commit

Permalink
Fix gas mismatch in constructor not being counted as a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Nov 15, 2021
1 parent 7334420 commit cf52827
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/libsolidity/SemanticTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit cf52827

Please sign in to comment.