Exceptions Flashcards
1
Q
exceptions are state-reverting
A
an exception undoes all changes made to the state in the current call and flag an error to the caller
2
Q
assert
A
test for internal errors. Shouldn’t be triggered for a properly. functioning code
3
Q
require
A
check conditions
4
Q
revert
A
flag an error and revert the current call
5
Q
assert-style exceptions consumes all gas available and
A
require-style exceptions does not