diff --git a/hermes/crates/cardano-chain-follower/src/lib.rs b/hermes/crates/cardano-chain-follower/src/lib.rs index 8b0d270b5..331703d29 100644 --- a/hermes/crates/cardano-chain-follower/src/lib.rs +++ b/hermes/crates/cardano-chain-follower/src/lib.rs @@ -122,6 +122,17 @@ impl FromStr for Network { } } +impl ToString for Network { + fn to_string(&self) -> String { + match self { + Network::Mainnet => "mainnet".to_string(), + Network::Preprod => "preprod".to_string(), + Network::Preview => "preview".to_string(), + Network::Testnet => "testnet".to_string(), + } + } +} + impl From for u64 { fn from(network: Network) -> Self { match network {