From 96aadc7d02859c1827cae1a0d05e6c14ffd13f87 Mon Sep 17 00:00:00 2001 From: David Kob Date: Mon, 4 Mar 2019 17:16:40 -0500 Subject: [PATCH] Updated Campaign Factory Array of campaigns, not addresses --- kickstart/ethereum/contracts/Campaign.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kickstart/ethereum/contracts/Campaign.sol b/kickstart/ethereum/contracts/Campaign.sol index 66ac8b48..ee694e8c 100644 --- a/kickstart/ethereum/contracts/Campaign.sol +++ b/kickstart/ethereum/contracts/Campaign.sol @@ -1,14 +1,14 @@ pragma solidity ^0.4.17; contract CampaignFactory { - address[] public deployedCampaigns; + Campaign[] public deployedCampaigns; function createCampaign(uint minimum) public { - address newCampaign = new Campaign(minimum, msg.sender); + Campaign newCampaign = new Campaign(minimum, msg.sender); deployedCampaigns.push(newCampaign); } - function getDeployedCampaigns() public view returns (address[]) { + function getDeployedCampaigns() public view returns (Campaign[] memory) { return deployedCampaigns; } }