-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make migration contract not to depend from standard token
- Loading branch information
1 parent
624cf45
commit db9db8e
Showing
4 changed files
with
1,768 additions
and
1,747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
import "../token/ERC20/StandardToken.sol"; | ||
import "../token/ERC20/MigratableERC20.sol"; | ||
|
||
/** | ||
* @title MigratedERC20Mock | ||
* @dev This contract is a mock to test how a token could be migrated using the MigratableERC20 contract | ||
*/ | ||
contract MigratedERC20Mock is MigratableERC20, StandardToken { | ||
|
||
constructor(ERC20 _legacyToken) MigratableERC20(_legacyToken) public {} | ||
|
||
/** | ||
* @dev Internal minting function | ||
* This function will be removed in favour of our new upcoming version of StandardToken | ||
*/ | ||
function _mint(address _to, uint256 _amount) internal { | ||
require(_to != address(0)); | ||
totalSupply_ = totalSupply_.add(_amount); | ||
balances[_to] = balances[_to].add(_amount); | ||
emit Transfer(address(0), _to, _amount); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.