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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

assert

A

test for internal errors. Shouldn’t be triggered for a properly. functioning code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

require

A

check conditions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

revert

A

flag an error and revert the current call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

assert-style exceptions consumes all gas available and

A

require-style exceptions does not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly