issues
search
Cyfrin
/
solidity-by-example.github.io
Solidity By Example
https://solidity-by-example.org/
MIT License
614
stars
201
forks
source link
Update ReEntrancy.sol
#261
Closed
sunnyStefi
closed
1 year ago
sunnyStefi
commented
1 year ago
the check on line 69
require(msg.value >= 1 ether);
can make sense if we add
msg.value
at line 70 and 63
a
receive
function can be used in place of a fallback, since withdraw is not sending any calldata
t4sk
commented
1 year ago
@sunnyStefi Thanks
require(msg.value >= 1 ether);
can make sense if we addmsg.value
at line 70 and 63