Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Aug 4, 2023
1 parent 5379fc8 commit ec94d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions groestlcoin/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Network {
/// use groestlcoin::Network;
/// use std::convert::TryFrom;
///
/// assert_eq!(Ok(Network::Groestlcoin), Network::try_from(Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD9])));
/// assert_eq!(Ok(Network::Groestlcoin), Network::try_from(Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD4])));
/// assert_eq!(None, Network::from_magic(Magic::from_bytes([0xFF, 0xFF, 0xFF, 0xFF])));
/// ```
pub fn from_magic(magic: Magic) -> Option<Network> { Network::try_from(magic).ok() }
Expand All @@ -74,7 +74,7 @@ impl Network {
/// use groestlcoin::Network;
///
/// let network = Network::Groestlcoin;
/// assert_eq!(network.magic(), Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD9]));
/// assert_eq!(network.magic(), Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD4]));
/// ```
pub fn magic(self) -> Magic { Magic::from(self) }

Expand Down

0 comments on commit ec94d18

Please sign in to comment.