Files
openzeppelin-contracts/contracts/mocks/ReentrancyAttack.sol
Francisco 874c2d3c02 Use explicit imports (#4399)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
2023-06-29 20:12:26 +00:00

13 lines
318 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {Context} from "../utils/Context.sol";
contract ReentrancyAttack is Context {
function callSender(bytes calldata data) public {
(bool success, ) = _msgSender().call(data);
require(success, "ReentrancyAttack: failed call");
}
}