Created
November 19, 2018 18:27
-
-
Save puilp0502/fd27f15a334ddf8c9c1eb3f7b9fc8c98 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.0; | |
contract KVStore { | |
mapping(uint64 => string) public map; | |
function set(uint64 key, string value) public { | |
map[key] = value; | |
} | |
function get(uint64 key) public view returns (string) { | |
return map[key]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current version:0.4.25+commit.59dbf8f1.Emscripten.clang
Enable Optimization ✔️