Created
July 12, 2018 17:51
-
-
Save johngriffin/13d95497b64aaa410b5831d4b41f6a0b 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
await deployer.deploy(FundFactory); | |
let factory = await FundFactory.deployed(); | |
let registry = FundRegistry.at(await factory.fundRegistry()); | |
await factory.createNewFund(owner, "S&P500 Index", 100, 20, 50, "S&P500 index, capital + dividends", {from: owner}); | |
await factory.createNewFund(owner, "Gold Investment", 20, 7, 80, "London gold fix in USD", {from: owner}); | |
await factory.createNewFund(owner, "US State Bonds", 5, 3, 100, "US 10-year Treasury Bonds", {from: owner}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment