mirror of https://github.com/crytic/slither
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.
15 lines
389 B
15 lines
389 B
contract C{
|
|
|
|
mapping (address => uint256) balances;
|
|
|
|
function bad(address[] memory receivers) public payable {
|
|
for (uint256 i = 0; i < receivers.length; i++) {
|
|
address(this).delegatecall(abi.encodeWithSignature("addBalance(address)", receivers[i]));
|
|
}
|
|
}
|
|
|
|
function addBalance(address a) public payable {
|
|
balances[a] += msg.value;
|
|
}
|
|
|
|
} |