Merge pull request #7882 from ethereum/libyul-assert

Actually throw YulAssertion in yulAssert
This commit is contained in:
Mathias L. Baumann 2019-12-03 17:39:22 +01:00 committed by GitHub
commit a13416f4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,6 @@ struct YulAssertion: virtual YulException {};
/// Assertion that throws an YulAssertion containing the given description if it is not met.
#define yulAssert(CONDITION, DESCRIPTION) \
assertThrow(CONDITION, ::yul::YulException, DESCRIPTION)
assertThrow(CONDITION, ::yul::YulAssertion, DESCRIPTION)
}