Question about Reentrance contract #704
danail-vasilev
started this conversation in
General
Replies: 1 comment
-
short answer is: does nothing. but why it exist? When You Make a Low Level Call, the an boolean value gets returned, so this is just a way so you dont get warning about not checking the returned value. to understand what i mean, just remove that if statement. Usually We do this to check if the low level call failed, if yes then revert: if (!result) {
revert("Low Level Call Failed");
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder what is the purpose of this line:
https://github.com/OpenZeppelin/ethernaut/blob/master/contracts/contracts/levels/Reentrance.sol#L22
Beta Was this translation helpful? Give feedback.
All reactions