From cde34a7b397baa22f3fb33a40dc476a0919bda41 Mon Sep 17 00:00:00 2001 From: Ajinkya Kulkarni Date: Tue, 25 Feb 2025 13:02:15 +0100 Subject: [PATCH] WIP --- crates/utils/cw-client/src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/utils/cw-client/src/cli.rs b/crates/utils/cw-client/src/cli.rs index 84901e0..1074bef 100644 --- a/crates/utils/cw-client/src/cli.rs +++ b/crates/utils/cw-client/src/cli.rs @@ -72,8 +72,8 @@ impl CliClient { 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: String = json["price"]["amount"].to_string(); - gas_price.push_str(&json["price"]["denom"].to_string()); + let price = json["price"]["amount"].to_string().parse::().expect("couldn't parse gas price"); + let gas_price = format!("{}untrn", price); Self { kind: CliClientType::Neutrond,