SimpleStorage.sol 320 Bytes
Newer Older
1
// SPDX-License-Identifier: MIT
2
pragma solidity ^0.8.0;
3 4 5 6 7 8 9 10 11 12 13 14

contract SimpleStorage {
    mapping(bytes32 => bytes32) public db;

    function set(bytes32 _key, bytes32 _value) public payable {
        db[_key] = _value;
    }

    function get(bytes32 _key) public view returns (bytes32) {
        return db[_key];
    }
}