Created
October 21, 2016 01:27
-
-
Save ericxtang/d3e91bdad83b550dc26365cbfcc17369 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
pragma solidity ^0.4.2; | |
import "CodeStorage.sol"; | |
contract SampleContract { | |
address csAddr; | |
string sourceUrl; | |
function SampleContract(address _csAddr, string _sourceUrl) { | |
csAddr = _csAddr; | |
sourceUrl = _sourceUrl; | |
} | |
function store() returns (bool) { | |
CodeStorage(csAddr).storeSourceByAddress(this, sourceUrl); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment