ReentrancyAttack.sol 272 B

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