WIP
This commit is contained in:
parent
aefd382394
commit
cde34a7b39
1 changed files with 2 additions and 2 deletions
|
@ -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::<u64>().expect("couldn't parse gas price");
|
||||
let gas_price = format!("{}untrn", price);
|
||||
|
||||
Self {
|
||||
kind: CliClientType::Neutrond,
|
||||
|
|
Loading…
Reference in a new issue