Last active
December 12, 2017 20:21
-
-
Save blueplanet/2fa37159888da4f2208ab9ae1b227933 to your computer and use it in GitHub Desktop.
スマートコントラクトでどんなデータを保存できる ref: https://qiita.com/blueplanet/items/adab0bb5c77b1d8a3959
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.0; | |
contract StringSaver { | |
string storedData; | |
function set(string newString) public { | |
storedData = newString; | |
} | |
function get() public constant returns (string data) { | |
return storedData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment