ReentrancyAttack.sol 340 B

12345678910
  1. pragma solidity ^0.5.0;
  2. import "../GSN/Context.sol";
  3. contract ReentrancyAttack is Context {
  4. function callSender(bytes4 data) public {
  5. // solhint-disable-next-line avoid-low-level-calls
  6. (bool success,) = _msgSender().call(abi.encodeWithSelector(data));
  7. require(success, "ReentrancyAttack: failed call");
  8. }
  9. }