Import/Migrate existing kredits contracts
This brings in the current state of the kredits contracts incl. the Contributors, Operator and Token contract.
This commit is contained in:
@@ -10,11 +10,6 @@ contract Token is Upgradeable, BasicToken {
|
||||
|
||||
event LogMint(address indexed recipient, uint256 amount, string reference);
|
||||
|
||||
modifier requireRegistry() {
|
||||
require(address(registry) != 0x0);
|
||||
_;
|
||||
}
|
||||
|
||||
function initialize(address sender) public payable {
|
||||
require(msg.sender == address(registry));
|
||||
name = 'Kredits';
|
||||
@@ -22,7 +17,7 @@ contract Token is Upgradeable, BasicToken {
|
||||
decimals = 18;
|
||||
}
|
||||
|
||||
function mintFor(address _recipient, uint256 _amount, string _reference) requireRegistry returns (bool success) {
|
||||
function mintFor(address _recipient, uint256 _amount, string _reference) onlyRegistryContractFor('Operator') public returns (bool success) {
|
||||
totalSupply_ = totalSupply_.add(_amount);
|
||||
balances[_recipient] = balances[_recipient].add(_amount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user