Skip to content

Instantly share code, notes, and snippets.

@kingpinXD
kingpinXD / ERC20.sol
Created July 6, 2018 19:29
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
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 {
@kingpinXD
kingpinXD / Campaign.sol
Created May 23, 2018 07:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
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;