Commit f90fd533 by Francisco Giordano

convert ERC20Detailed

parent 653b154b
pragma solidity ^0.4.24; pragma solidity ^0.4.24;
import "../Initializable.sol";
import "../token/ERC20/ERC20.sol"; import "../token/ERC20/ERC20.sol";
import "../token/ERC20/ERC20Detailed.sol"; import "../token/ERC20/ERC20Detailed.sol";
contract ERC20DetailedMock is ERC20, ERC20Detailed { contract ERC20DetailedMock is Initializable, ERC20, ERC20Detailed {
constructor( constructor(
string name, string name,
string symbol, string symbol,
uint8 decimals uint8 decimals
) )
ERC20Detailed(name, symbol, decimals)
public public
{} {
ERC20Detailed.initialize(name, symbol, decimals);
}
} }
pragma solidity ^0.4.24; pragma solidity ^0.4.24;
import "../../Initializable.sol";
import "./IERC20.sol"; import "./IERC20.sol";
...@@ -9,12 +10,12 @@ import "./IERC20.sol"; ...@@ -9,12 +10,12 @@ import "./IERC20.sol";
* All the operations are done using the smallest and indivisible token unit, * All the operations are done using the smallest and indivisible token unit,
* just as on Ethereum all the operations are done in wei. * just as on Ethereum all the operations are done in wei.
*/ */
contract ERC20Detailed is IERC20 { contract ERC20Detailed is Initializable, IERC20 {
string private _name; string private _name;
string private _symbol; string private _symbol;
uint8 private _decimals; uint8 private _decimals;
constructor(string name, string symbol, uint8 decimals) public { function initialize(string name, string symbol, uint8 decimals) public initializer {
_name = name; _name = name;
_symbol = symbol; _symbol = symbol;
_decimals = decimals; _decimals = decimals;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment