From 1a3e3a7c00372ce42a4c2f8117d510c19010bada Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Tue, 23 Apr 2024 15:31:27 +0200 Subject: [PATCH] refactor(hermes): match mapping address argument style with the rest (#1498) --- apps/hermes/Cargo.lock | 2 +- apps/hermes/Cargo.toml | 2 +- apps/hermes/src/config/pythnet.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/hermes/Cargo.lock b/apps/hermes/Cargo.lock index 7b36b4af74..b7f0515cbd 100644 --- a/apps/hermes/Cargo.lock +++ b/apps/hermes/Cargo.lock @@ -1796,7 +1796,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermes" -version = "0.5.7" +version = "0.5.8" dependencies = [ "anyhow", "async-trait", diff --git a/apps/hermes/Cargo.toml b/apps/hermes/Cargo.toml index 6c2ff1dc07..879b535b77 100644 --- a/apps/hermes/Cargo.toml +++ b/apps/hermes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hermes" -version = "0.5.7" +version = "0.5.8" description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle." edition = "2021" diff --git a/apps/hermes/src/config/pythnet.rs b/apps/hermes/src/config/pythnet.rs index 2bfb7791a1..e110352964 100644 --- a/apps/hermes/src/config/pythnet.rs +++ b/apps/hermes/src/config/pythnet.rs @@ -19,9 +19,9 @@ pub struct Options { #[arg(env = "PYTHNET_HTTP_ADDR")] pub http_addr: String, - /// Pyth mapping account address. - #[arg(long = "mapping-address")] + /// Pyth mapping account address on Pythnet. + #[arg(long = "pythnet-mapping-addr")] #[arg(default_value = DEFAULT_PYTHNET_MAPPING_ADDR)] - #[arg(env = "PYTHNET_MAPPING_ADDRESS")] + #[arg(env = "PYTHNET_MAPPING_ADDR")] pub mapping_addr: Pubkey, }