You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOT in EVM is bitwise NOT, not logical NOT. So the overflow checking for multiplication (['assert', ['or', ['eq', ['sdiv', 'ans', 'l'], 'r'], ['not', 'l']]] ) is wrong. Consider the following the test cases:
What's your issue about?
NOT
in EVM is bitwise NOT, not logicalNOT
. So the overflow checking for multiplication (['assert', ['or', ['eq', ['sdiv', 'ans', 'l'], 'r'], ['not', 'l']]]
) is wrong. Consider the following the test cases:NUM_1 * NUM_2 > 2**127, but no exception is thrown.
How can it be fixed?
Use
ISZERO
to test whetherl
is zero.Cute Animal Picture
The text was updated successfully, but these errors were encountered: