Created
March 27, 2018 01:46
-
-
Save cag/03c076eac86eade23174064b03ae8f00 to your computer and use it in GitHub Desktop.
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.21; | |
import "./ProxyPostByzantium.sol"; | |
import "./KombuchaMINoAcc.sol"; | |
contract KombuchaFactory { | |
Kombucha private masterCopy; | |
function KombuchaFactory() public { | |
masterCopy = new Kombucha(); | |
} | |
function createKombucha(string flavor, uint fillAmount, uint capacity) | |
public | |
returns (Kombucha) | |
{ | |
return Kombucha(new KombuchaProxy(masterCopy, flavor, fillAmount, capacity)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment