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