(&self, key: &[u8])
| 18 | type Error = ChainError; |
| 19 | |
| 20 | fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>> { |
| 21 | let value = self |
| 22 | .db |
| 23 | .get(key) |
| 24 | .map_err(|_| ChainError::StorageNotFound(Storage::key_string(key)))?; |
| 25 | |
| 26 | Ok(value) |
| 27 | } |
| 28 | |
| 29 | fn insert(&self, key: &[u8], value: Vec<u8>) -> Result<()> { |
| 30 | self.db |
no outgoing calls