mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-31 01:58:17 -05:00
chore: add missing is functions (#6309)
This commit is contained in:
@@ -38,6 +38,21 @@ impl EthVersion {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the version is eth/66
|
||||
pub const fn is_eth66(&self) -> bool {
|
||||
matches!(self, EthVersion::Eth66)
|
||||
}
|
||||
|
||||
/// Returns true if the version is eth/67
|
||||
pub const fn is_eth67(&self) -> bool {
|
||||
matches!(self, EthVersion::Eth67)
|
||||
}
|
||||
|
||||
/// Returns true if the version is eth/68
|
||||
pub const fn is_eth68(&self) -> bool {
|
||||
matches!(self, EthVersion::Eth68)
|
||||
}
|
||||
}
|
||||
|
||||
/// Allow for converting from a `&str` to an `EthVersion`.
|
||||
|
||||
Reference in New Issue
Block a user