Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Oct 22, 2024
1 parent 8012adb commit aeea33c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/eips/src/eip1898.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use serde::ser::SerializeStruct;

/// A block hash which may have a boolean `requireCanonical` field.
///
/// - If false, an RPC call should raise if a block matching the hash is not found.
/// - If true, an RPC call should additionally raise if the block is not in the canonical chain.
/// - If false, a RPC call should raise if a block matching the hash is not found.
/// - If true, a RPC call should additionally raise if the block is not in the canonical chain.
///
/// <https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md#specification>
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
Expand All @@ -28,7 +28,7 @@ pub struct RpcBlockHash {
}

impl RpcBlockHash {
/// Returns an [`RpcBlockHash`] from a [`B256`].
/// Returns a [`RpcBlockHash`] from a [`B256`].
#[doc(alias = "from_block_hash")]
pub const fn from_hash(block_hash: B256, require_canonical: Option<bool>) -> Self {
Self { block_hash, require_canonical }
Expand Down

0 comments on commit aeea33c

Please sign in to comment.