Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: expose some helpers (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Apr 7, 2022
1 parent 6e43d46 commit 509db06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethers-core/src/types/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl Serialize for BlockId {
}

/// A block Number (or tag - "latest", "earliest", "pending")
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum BlockNumber {
/// Latest block
Latest,
Expand Down
2 changes: 1 addition & 1 deletion ethers-core/src/types/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Signature {
}

/// Retrieve the recovery ID.
fn recovery_id(&self) -> Result<RecoveryId, SignatureError> {
pub fn recovery_id(&self) -> Result<RecoveryId, SignatureError> {
let standard_v = normalize_recovery_id(self.v);
Ok(RecoveryId::new(standard_v)?)
}
Expand Down

0 comments on commit 509db06

Please sign in to comment.