Skip to content

Commit

Permalink
s/contains_value/contains_key/
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Jan 29, 2024
1 parent 50b0592 commit 3642da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/store/src/flat/chunk_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ impl FlatStorageChunkView {
self.flat_storage.get_value(&self.block_hash, key)
}

pub fn contains_value(&self, key: &[u8]) -> Result<bool, crate::StorageError> {
self.flat_storage.contains_value(&self.block_hash, key)
pub fn contains_key(&self, key: &[u8]) -> Result<bool, crate::StorageError> {
self.flat_storage.contains_key(&self.block_hash, key)
}

pub fn iter_flat_state_entries<'a>(
Expand Down
2 changes: 1 addition & 1 deletion core/store/src/flat/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl FlatStorage {
}

/// Same as `get_value()?.is_some()`, but avoids reading out the value.
pub fn contains_value(
pub fn contains_key(
&self,
block_hash: &CryptoHash,
key: &[u8],
Expand Down

0 comments on commit 3642da6

Please sign in to comment.