Instantly share code, notes, and snippets.

View ERC20.sol
pragma solidity ^0.4.23;
import "browser/ERC20Basic.sol";
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 is ERC20Basic {
View Campaign.sol
pragma solidity ^0.4.17;
contract CampaignFactory{
address[] public deployedcampaigns;
function createCampaign(uint min)public {
address newcampaign=new Campaign(min,msg.sender);
deployedcampaigns.push(newcampaign);
}
function getDeployedCampaigns()public view returns (address[]){
return deployedcampaigns;