We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e39aa commit b4406d3Copy full SHA for b4406d3
contracts/mocks/ReentrancyMock.sol
@@ -24,11 +24,10 @@ contract ReentrancyMock is ReentrancyGuard {
24
}
25
26
function countThisRecursive(uint256 n) public nonReentrant {
27
- bytes4 func = bytes4(keccak256("countThisRecursive(uint256)"));
28
if (n > 0) {
29
count();
30
// solium-disable-next-line security/no-low-level-calls
31
- bool result = address(this).call(func, n - 1);
+ bool result = address(this).call(abi.encodeWithSignature("countThisRecursive(uint256)", n - 1));
32
require(result == true);
33
34
0 commit comments