Guest User

Untitled

a guest
Nov 19th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. pragma solidity ^0.4.0;
  2. contract KVStore {
  3. mapping(uint64 => string) public map;
  4.  
  5. function set(uint64 key, string value) public {
  6. map[key] = value;
  7. }
  8.  
  9. function get(uint64 key) public view returns (string) {
  10. return map[key];
  11. }
  12. }
Add Comment
Please, Sign In to add comment