You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
577 B
28 lines
577 B
pragma solidity ^0.4.24;
|
|
|
|
import "./ERC20.sol";
|
|
import "../../access/roles/MinterRole.sol";
|
|
|
|
/**
|
|
* @title ERC20Mintable
|
|
* @dev ERC20 minting logic
|
|
*/
|
|
contract ERC20Mintable is ERC20, MinterRole {
|
|
/**
|
|
* @dev Function to mint tokens
|
|
* @param to The address that will receive the minted tokens.
|
|
* @param value The amount of tokens to mint.
|
|
* @return A boolean that indicates if the operation was successful.
|
|
*/
|
|
function mint(
|
|
address to,
|
|
uint256 value
|
|
)
|
|
public
|
|
onlyMinter
|
|
returns (bool)
|
|
{
|
|
_mint(to, value);
|
|
return true;
|
|
}
|
|
}
|
|
|