Replace some uses of abi.encodePacked with more explicit alternatives (#4296)
Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
@ -5,8 +5,8 @@ pragma solidity ^0.8.19;
|
||||
import "../utils/Context.sol";
|
||||
|
||||
contract ReentrancyAttack is Context {
|
||||
function callSender(bytes4 data) public {
|
||||
(bool success, ) = _msgSender().call(abi.encodeWithSelector(data));
|
||||
function callSender(bytes calldata data) public {
|
||||
(bool success, ) = _msgSender().call(data);
|
||||
require(success, "ReentrancyAttack: failed call");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user