modify error message
This commit is contained in:
parent
9e43c7b93a
commit
c8ba573fb2
@ -6,8 +6,6 @@ import "./ERC20Token.sol";
|
||||
contract Token is ERC20Token, AragonApp {
|
||||
bytes32 public constant MINT_TOKEN_ROLE = keccak256("MINT_TOKEN_ROLE");
|
||||
|
||||
string private constant ERROR_INVALID_AMOUNT = "Amount should be greater than zero";
|
||||
|
||||
// ensure alphabetic order
|
||||
enum Apps { Contribution, Contributor, Proposal, Token }
|
||||
bytes32[4] public appIds;
|
||||
@ -23,7 +21,7 @@ contract Token is ERC20Token, AragonApp {
|
||||
}
|
||||
|
||||
function mintFor(address contributorAccount, uint256 amount, uint32 contributionId) public isInitialized auth(MINT_TOKEN_ROLE) {
|
||||
require(amount > 0, ERROR_INVALID_AMOUNT);
|
||||
require(amount > 0, "INVALID_AMOUNT");
|
||||
|
||||
uint256 amountInWei = amount.mul(1 ether);
|
||||
_mint(contributorAccount, amountInWei);
|
||||
|
Loading…
x
Reference in New Issue
Block a user