From aefd382394328d796e886ab54b81cd2188b9f8cd Mon Sep 17 00:00:00 2001 From: Ajinkya Kulkarni Date: Tue, 25 Feb 2025 12:48:18 +0100 Subject: [PATCH] WIP --- crates/utils/cw-client/src/cli.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/utils/cw-client/src/cli.rs b/crates/utils/cw-client/src/cli.rs index 9f1729a..84901e0 100644 --- a/crates/utils/cw-client/src/cli.rs +++ b/crates/utils/cw-client/src/cli.rs @@ -71,8 +71,9 @@ impl CliClient { let output = command.output().expect("command output failed").stdout; let output_str: String = std::str::from_utf8(&output).expect("unable to parse command output").to_string(); let json: Value = serde_json::from_str(&output_str).expect("could not convert to JSON"); - let mut gas_price = json["price"]["amount"].to_string(); - gas_price.push_str("untrn"); + + let mut gas_price: String = json["price"]["amount"].to_string(); + gas_price.push_str(&json["price"]["denom"].to_string()); Self { kind: CliClientType::Neutrond,