Update the use of call() with selector only. (#1033)

This commit is contained in:
Alex Beregszaszi
2018-06-30 22:55:03 +02:00
committed by Francisco Giordano
parent fd253d6b8d
commit c2ad8c3f57

View File

@ -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)));
}
}