Skip to content

Commit

Permalink
backward compatible (informalsystems#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jan 23, 2024
1 parent ab73266 commit 915e44c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl PartialOrd for GasPrice {
/// the parsing of other prices.
pub fn parse_gas_prices(prices: String) -> Vec<GasPrice> {
prices
.split(';')
.split(|c| c == ',' || c == ';')
.filter_map(|gp| GasPrice::from_str(gp).ok())
.collect()
}
Expand Down Expand Up @@ -819,8 +819,8 @@ mod tests {
},
];

assert_eq!(expected, parsed);
}
assert_eq!(expected, parsed);
}

#[test]
fn parse_empty_gas_price() {
Expand All @@ -840,6 +840,6 @@ mod tests {
denom: "token3".to_owned(),
}];

assert_eq!(expected, parsed);
assert_eq!(expected, parsed);
}
}
}

0 comments on commit 915e44c

Please sign in to comment.