correct denomination
This commit is contained in:
parent
f9022c2a76
commit
f3db4f5a9c
1 changed files with 4 additions and 3 deletions
|
@ -71,12 +71,13 @@ 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 gas_price = &json["price"]["amount"];
|
||||
|
||||
let mut gas_price = json["price"]["amount"].to_string();
|
||||
gas_price.push_str("untrn");
|
||||
|
||||
Self {
|
||||
kind: CliClientType::Neutrond,
|
||||
url,
|
||||
gas_price: gas_price.to_string(),
|
||||
gas_price,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue