chore: expose some helpers (#1118)

This commit is contained in:
Matthias Seitz 2022-04-07 12:09:32 +02:00 committed by GitHub
parent 6e43d46f57
commit 509db06080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ impl Serialize for BlockId {
} }
/// A block Number (or tag - "latest", "earliest", "pending") /// A block Number (or tag - "latest", "earliest", "pending")
#[derive(Copy, Clone, Debug, PartialEq)] #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum BlockNumber { pub enum BlockNumber {
/// Latest block /// Latest block
Latest, Latest,

View File

@ -131,7 +131,7 @@ impl Signature {
} }
/// Retrieve the recovery ID. /// 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); let standard_v = normalize_recovery_id(self.v);
Ok(RecoveryId::new(standard_v)?) Ok(RecoveryId::new(standard_v)?)
} }