// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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];
}
}
-
Mark Tyneway authored
There are a bunch of contracts mocks used only for testing. This commit moves the mocks to a particular directory `test/mocks` so that we can standardize around that as being the location for mock contracts only used for testing to go. This commit exists to make https://github.com/ethereum-optimism/optimism/pull/7928 easier to implement.
9cbb9fb3