From 04cfb8d16f8c34a90dda690d278c15f245e42a14 Mon Sep 17 00:00:00 2001
From: Ajinkya Kulkarni <ajinkya@poeticte.ch>
Date: Tue, 25 Feb 2025 13:43:59 +0100
Subject: [PATCH] WIP

---
 crates/utils/cw-client/src/cli.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crates/utils/cw-client/src/cli.rs b/crates/utils/cw-client/src/cli.rs
index 5d42ba0..5dc497c 100644
--- a/crates/utils/cw-client/src/cli.rs
+++ b/crates/utils/cw-client/src/cli.rs
@@ -73,7 +73,7 @@ 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 price = f64::from_str(&json["price"]["amount"].to_string()).expect("couldn't parse gas price");
+        let price = &json["price"]["amount"].as_f64().expect("couldn't parse gas price");
         let gas_price = format!("{}untrn", price);
         
         Self {