Skip to content

Instantly share code, notes, and snippets.

@cag
Created March 27, 2018 01:46
Show Gist options
  • Save cag/03c076eac86eade23174064b03ae8f00 to your computer and use it in GitHub Desktop.
Save cag/03c076eac86eade23174064b03ae8f00 to your computer and use it in GitHub Desktop.
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