Created
March 14, 2018 15:48
-
-
Save benjaminshafii/bc0313f35054fcc5c17dc46a222c1f66 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pragma solidity ^0.4.17; | |
contract AssetFactory { | |
event NewAsset(string name); | |
struct Asset { | |
string name; | |
} | |
string public asset; | |
function AssetFactory() public { | |
createAsset("initial asset"); | |
} | |
function createAsset(string _name) public { | |
asset = _name; | |
NewAsset("New Asset"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment