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 35bfb09 commit 2252a55Copy full SHA for 2252a55
contracts/AirDrop.sol
@@ -68,17 +68,30 @@ contract AirDrop is Ownable {
68
{
69
/* calling transfer function from contract */
70
tokenInstance.transfer(_address [i],_amount);
71
- if(_address [i].balance == 0)
+ if((_address [i].balance == 0) && (this.balance >= _ethAmount))
72
73
require(_address [i].send(_ethAmount));
74
}
75
76
77
78
+
79
+ function transferEthToOnwer() onlyOwner public returns (bool) {
80
+ require(owner.send(this.balance));
81
+ }
82
83
/*
84
function to add eth to the contract
85
*/
86
function() payable {
87
88
89
90
+ /*
91
+ function to kill contract
92
+ */
93
94
+ function kill() onlyOwner {
95
+ selfdestruct(owner);
96
97
0 commit comments