Skip to content

Commit

Permalink
fix interface inheritance in factory
Browse files Browse the repository at this point in the history
  • Loading branch information
0x3bfc committed May 21, 2020
1 parent f5745fd commit d6f5c93
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions contracts/Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import './interfaces/IERC20Template.sol';
* @title Factory contract
* @dev Contract for creation of Ocean Data Tokens
*/
contract Factory is IERC20Template, Deployer {
contract Factory is Deployer {

address private feeManager;
address payable private feeManager;
address private tokenTemplate;

event TokenCreated(
Expand All @@ -36,7 +36,7 @@ contract Factory is IERC20Template, Deployer {
*/
constructor(
address _template,
address _feeManager
address payable _feeManager
)
public
{
Expand Down Expand Up @@ -80,18 +80,28 @@ contract Factory is IERC20Template, Deployer {
token != address(0),
'Factory: Failed to perform minimal deploy of a new token'
);

IERC20Template tokenInstance = IERC20Template(token);

//init Token
bytes memory _initPayload = abi.encodeWithSignature(
'initialize(string,string,address,address)',

tokenInstance.initialize(
_name,
_symbol,
_minter,
_cap,
feeManager
);
//init Token
// bytes memory _initPayload = abi.encodeWithSignature(
// 'initialize(string,string,address,address)',
// _name,
// _symbol,
// _minter,
// _cap,
// feeManager
// );

token.call(_initPayload);
// token.call(_initPayload);

emit TokenCreated(
token,
Expand Down

0 comments on commit d6f5c93

Please sign in to comment.