This commit is contained in:
Ajinkya Kulkarni 2025-02-25 12:48:18 +01:00
parent f3db4f5a9c
commit aefd382394

View file

@ -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,