Skip to content

Instantly share code, notes, and snippets.

@Juan-cc
Last active December 5, 2018 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juan-cc/80f00b78256bc720e7286b8b58569dee to your computer and use it in GitHub Desktop.
Save Juan-cc/80f00b78256bc720e7286b8b58569dee to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "github.com/ConsenSys/Tokens/contracts/eip20/EIP20.sol";
import "github.com/ConsenSys/Tokens/contracts/eip20/EIP20Interface.sol";
import "github.com/ConsenSys/Tokens/contracts/eip20/EIP20Factory.sol";
contract KM {
address public kmOwner;
mapping (address => address) public companiesByOwner;
address private factory;
constructor() public {
kmOwner = msg.sender;
factory = new EIP20Factory();
}
function createToken(uint256 _initialAmount, string _name, uint8 _decimals, string _symbol)
public
returns(address){
return EIP20Factory(factory).createEIP20( _initialAmount, _name, _decimals, _symbol);
}
}
contract BC {
address public bcOwner;
mapping (address => bool) public admins;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment