Last active
December 5, 2018 04:00
-
-
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=
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
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