* Removed mintingFinished from ERC20Mintable.
* Removed MintingFinished from ERC721Mintable.
* Removed MintingFinished event.
(cherry picked from commit 5fdeaa81d5)
30 lines
581 B
Solidity
30 lines
581 B
Solidity
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 amount The amount of tokens to mint.
|
|
* @return A boolean that indicates if the operation was successful.
|
|
*/
|
|
function mint(
|
|
address to,
|
|
uint256 amount
|
|
)
|
|
public
|
|
onlyMinter
|
|
returns (bool)
|
|
{
|
|
_mint(to, amount);
|
|
return true;
|
|
}
|
|
}
|