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 b5514b8 commit f45a52aCopy full SHA for f45a52a
contracts/lifecycle/TokenDestructible.sol
@@ -21,11 +21,11 @@ contract TokenDestructible is Ownable {
21
* @notice The called token contracts could try to re-enter this contract. Only
22
supply token contracts you trust.
23
*/
24
- function destroy(address[] _tokens) onlyOwner public {
+ function destroy(address[] tokens) onlyOwner public {
25
26
// Transfer tokens to owner
27
- for (uint256 i = 0; i < _tokens.length; i++) {
28
- ERC20Basic token = ERC20Basic(_tokens[i]);
+ for (uint256 i = 0; i < tokens.length; i++) {
+ ERC20Basic token = ERC20Basic(tokens[i]);
29
uint256 balance = token.balanceOf(address(this));
30
token.transfer(owner, balance);
31
}
0 commit comments