Last active
March 27, 2018 16:20
-
-
Save cag/c9c7eae967d3bad3bb054bc3b08fdf4f 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 "./KombuchaWithInit.sol"; | |
import "./ProxyPostByzantium.sol"; | |
contract KombuchaFactory { | |
Kombucha private masterCopy; | |
function KombuchaFactory(Kombucha _masterCopy) public { | |
masterCopy = _masterCopy; | |
} | |
function createKombucha(string flavor, uint fillAmount, uint capacity) | |
public | |
returns (Kombucha kombucha) | |
{ | |
kombucha = Kombucha(new Proxy(masterCopy)); | |
kombucha.init(flavor, fillAmount, capacity); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment