ReentrancyAttack.sol 265 B

123456789
  1. pragma solidity ^0.5.7;
  2. contract ReentrancyAttack {
  3. function callSender(bytes4 data) public {
  4. // solhint-disable-next-line avoid-low-level-calls
  5. (bool success,) = msg.sender.call(abi.encodeWithSelector(data));
  6. require(success);
  7. }
  8. }