Closed DOkwufulueze closed 6 years ago
This is great thank you @DOkwufulueze !
That's all well and good, but how do you change throw to revert(), require() or assert()?
function killCoin() public returns (bool status) {
if (msg.sender != minter) throw;
selfdestruct(minter);
}
The code won't compile if I replace throw with any of this lot.
Use Modifier [onlyExistingUser] to ensure that only existing users can login. Use Modifier [onlyValidName] to ensure names are sent when signing up. Use the two modifiers [onlyExisitingUser and onlyValidName] to ensure safe update.
The use of modifiers is to conform to the warning that throw is deprecated in favour of "revert()", "require()", and "assert()".