typo: replace [BlockId] by [BlockId] (#10121)

Co-authored-by: nk_ysg <nk_ysg@163.com>
This commit is contained in:
Thomas Coratger
2024-08-06 14:33:41 +02:00
committed by GitHub
parent 58a5d26469
commit ef728b5803
3 changed files with 6 additions and 6 deletions

View File

@@ -200,12 +200,12 @@ pub trait BlockReaderIdExt: BlockReader + BlockIdReader + ReceiptProviderIdExt {
self.sealed_header_by_id(BlockNumberOrTag::Finalized.into())
}
/// Returns the block with the matching [BlockId] from the database.
/// Returns the block with the matching [`BlockId`] from the database.
///
/// Returns `None` if block is not found.
fn block_by_id(&self, id: BlockId) -> ProviderResult<Option<Block>>;
/// Returns the block with senders with matching [BlockId].
/// Returns the block with senders with matching [`BlockId`].
///
/// Returns the block's transactions in the requested variant.
///

View File

@@ -40,10 +40,10 @@ pub trait BlockNumReader: BlockHashReader + Send + Sync {
}
}
/// Client trait for transforming [BlockId] into block numbers or hashes.
/// Client trait for transforming [`BlockId`] into block numbers or hashes.
///
/// Types that implement this trait must be able to resolve all variants of [BlockNumberOrTag] to
/// block numbers or hashes. Automatic implementations for resolving [BlockNumberOrTag] variants
/// Types that implement this trait must be able to resolve all variants of [`BlockNumberOrTag`] to
/// block numbers or hashes. Automatic implementations for resolving [`BlockNumberOrTag`] variants
/// are provided if the type implements the `pending_block_num_hash`, `finalized_block_num`, and
/// `safe_block_num` methods.
///

View File

@@ -101,7 +101,7 @@ pub trait StateProviderFactory: BlockIdReader + Send + Sync {
/// Storage provider for latest block.
fn latest(&self) -> ProviderResult<StateProviderBox>;
/// Returns a [StateProvider] indexed by the given [BlockId].
/// Returns a [`StateProvider`] indexed by the given [`BlockId`].
///
/// Note: if a number or hash is provided this will __only__ look at historical(canonical)
/// state.