Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/adding require failure messages #265

Merged
merged 13 commits into from Sep 11, 2019

fixing capitalization inconsistencies.

  • Loading branch information
Freydal committed Sep 9, 2019
commit cf1524b00dd6096ace1e4358b46bf0baecff341f
@@ -23,7 +23,7 @@ contract Authorizable {
@notice Ensures msg.sender is authorized within the AuthorizedAddresses contract
*/
modifier isAuthorized() {
require(authorizedAddress.isAddressAuthorized(msg.sender), "Unauthorized");
require(authorizedAddress.isAddressAuthorized(msg.sender), "unauthorized");
_;
}
}
@@ -98,7 +98,7 @@ contract KosuToken is ERC20, Authorizable {
*/
function calculateEtherToToken(uint etherValue) internal view returns (uint) {
if (_weiPaid == 0 && totalSupply() == 0) {
require(etherValue == (2 ether)/10, "First transaction must be .2 ether");
require(etherValue == (2 ether)/10, "first transaction must be .2 ether");
return 10000 ether;
} else {
return Formula.calculatePurchaseReturn(totalSupply(), _weiPaid, r, etherValue);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.