Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
slither/tests/detectors/calls-loop/0.5.16/multiple_calls_in_loop.sol

15 lines
317 B

contract CallInLoop{
address[] destinations;
constructor(address[] memory newDestinations) public{
destinations = newDestinations;
}
function bad() external{
for (uint i=0; i < destinations.length; i++){
address(uint160(destinations[i])).transfer(i);
}
}
}