Skip to content

Commit df73616

Browse files
authored
Merge pull request #5 from SpringRole/develop
Develop
2 parents 86259d2 + a76d509 commit df73616

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

AirDrop.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ contract AirDrop is Ownable {
6363
Airdrop function which take up a array of address and amount and call the
6464
transfer function to send the token
6565
*/
66-
function doAirDrop(address[] addrs, uint256 _amount) onlyOwner public returns (bool success) {
67-
uint256 count = addrs.length;
66+
function doAirDrop(address[] _address, uint256 _amount) onlyOwner public returns (bool success) {
67+
uint256 count = _address.length;
6868
for (uint256 i = 0; i < count; i++)
6969
{
7070
/* calling transfer function from contract */
71-
tokenInstance.transfer(addrs [i],_amount);
71+
tokenInstance.transfer(_address [i],_amount);
7272
/* logging event */
73-
AddressLog(addrs [i],_amount);
73+
AddressLog(_address [i],_amount);
7474
}
7575
}
7676
}

Vanity.sol

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ contract VanityURL is Ownable,Pausable {
151151
reservedKeywords[_keyword] = 1;
152152
}
153153

154+
155+
/*
156+
function to remove reserved keyword
157+
*/
158+
function removeReservedKeyword (string _keyword) onlyOwner public {
159+
delete(reservedKeywords[_keyword]);
160+
}
161+
154162
/* function to set reserve pricing */
155163
function setReservePricing (uint256 _reservePricing) onlyOwner public {
156164
reservePricing = _reservePricing;
@@ -184,6 +192,7 @@ contract VanityURL is Ownable,Pausable {
184192
vanity_address_mapping[_vanity_url] = msg.sender;
185193
address_vanity_mapping[msg.sender] = _vanity_url;
186194
}
195+
187196
/*
188197
function to verify vanityURL
189198
1. Minimum length 4
@@ -220,13 +229,28 @@ contract VanityURL is Ownable,Pausable {
220229
}
221230

222231
/*
223-
function to change vanity URL owner
232+
function to transfer ownership for Vanity URL
224233
*/
225-
function transferOwnershipForVanityURL(address _to) public {
234+
function transferOwnershipForVanityURL(address _to) whenNotPaused public {
226235
require(bytes(address_vanity_mapping[_to]).length != 0);
227236
address_vanity_mapping[_to] = address_vanity_mapping[msg.sender];
228237
vanity_address_mapping[address_vanity_mapping[msg.sender]] = _to;
229238
delete(address_vanity_mapping[msg.sender]);
230239
}
231240

241+
/*
242+
function to kill contract
243+
*/
244+
245+
function kill() onlyOwner {
246+
suicide(owner);
247+
}
248+
249+
/*
250+
transfer eth recived to owner account if any
251+
*/
252+
function() payable {
253+
owner.transfer(msg.value);
254+
}
255+
232256
}

0 commit comments

Comments
 (0)