Skip to content

Commit

Permalink
fix param name in comment (#199)
Browse files Browse the repository at this point in the history
fixes parameter name in a comment for get_block_by_hash
  • Loading branch information
dariaag authored Nov 24, 2024
1 parent 2a3112c commit 8d862f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/freeze/src/types/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl Source {
Self::map_err(source_provider!(self, get_block(block_num)).await)
}

/// Gets the block at `block_num` (transaction hashes only)
/// Gets the block with `block_hash` (transaction hashes only)
pub async fn get_block_by_hash(&self, block_hash: H256) -> Result<Option<Block<TxHash>>> {
let _permit = self.permit_request().await;
Self::map_err(source_provider!(self, get_block(BlockId::Hash(block_hash))).await)
Expand Down

0 comments on commit 8d862f3

Please sign in to comment.