Update the use of call() with selector only. (#1033)
This commit is contained in:
committed by
Francisco Giordano
parent
fd253d6b8d
commit
c2ad8c3f57
@ -5,7 +5,7 @@ contract ReentrancyAttack {
|
||||
|
||||
function callSender(bytes4 data) public {
|
||||
// solium-disable-next-line security/no-low-level-calls
|
||||
require(msg.sender.call(data));
|
||||
require(msg.sender.call(abi.encodeWithSelector(data)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user