@@ -151,6 +151,14 @@ contract VanityURL is Ownable,Pausable {
151
151
reservedKeywords[_keyword] = 1 ;
152
152
}
153
153
154
+
155
+ /*
156
+ function to remove reserved keyword
157
+ */
158
+ function removeReservedKeyword (string _keyword ) onlyOwner public {
159
+ delete (reservedKeywords[_keyword]);
160
+ }
161
+
154
162
/* function to set reserve pricing */
155
163
function setReservePricing (uint256 _reservePricing ) onlyOwner public {
156
164
reservePricing = _reservePricing;
@@ -184,6 +192,7 @@ contract VanityURL is Ownable,Pausable {
184
192
vanity_address_mapping[_vanity_url] = msg .sender ;
185
193
address_vanity_mapping[msg .sender ] = _vanity_url;
186
194
}
195
+
187
196
/*
188
197
function to verify vanityURL
189
198
1. Minimum length 4
@@ -220,13 +229,28 @@ contract VanityURL is Ownable,Pausable {
220
229
}
221
230
222
231
/*
223
- function to change vanity URL owner
232
+ function to transfer ownership for Vanity URL
224
233
*/
225
- function transferOwnershipForVanityURL (address _to ) public {
234
+ function transferOwnershipForVanityURL (address _to ) whenNotPaused public {
226
235
require (bytes (address_vanity_mapping[_to]).length != 0 );
227
236
address_vanity_mapping[_to] = address_vanity_mapping[msg .sender ];
228
237
vanity_address_mapping[address_vanity_mapping[msg .sender ]] = _to;
229
238
delete (address_vanity_mapping[msg .sender ]);
230
239
}
231
240
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
+
232
256
}
0 commit comments