Skip to content

Commit

Permalink
Fix txn fee lookup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
madninja committed Jun 29, 2020
1 parent c14e0b2 commit cd85089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ pub fn get_txn_fees(client: &Client) -> Result<TxnFeeConfig> {
let vars = client.get_vars()?;
if vars.contains_key("txn_fees") {
match vars["txn_fees"].as_bool() {
Some(true) => Ok(TxnFeeConfig::legacy()),
_ => {
Some(true) => {
let config: TxnFeeConfig = serde_json::from_value(serde_json::Value::Object(vars))?;
Ok(config)
}
},
_ => Ok(TxnFeeConfig::legacy()),
}
} else {
Ok(TxnFeeConfig::legacy())
Expand Down

0 comments on commit cd85089

Please sign in to comment.