From 915e44c6b8738541b710ce39e6d4c57fc76d6952 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 18 Jan 2024 16:15:18 +0800 Subject: [PATCH] backward compatible (#1) --- crates/relayer/src/config.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/relayer/src/config.rs b/crates/relayer/src/config.rs index 8301d16ec3..651cec281c 100644 --- a/crates/relayer/src/config.rs +++ b/crates/relayer/src/config.rs @@ -108,7 +108,7 @@ impl PartialOrd for GasPrice { /// the parsing of other prices. pub fn parse_gas_prices(prices: String) -> Vec { prices - .split(';') + .split(|c| c == ',' || c == ';') .filter_map(|gp| GasPrice::from_str(gp).ok()) .collect() } @@ -819,8 +819,8 @@ mod tests { }, ]; - assert_eq!(expected, parsed); - } + assert_eq!(expected, parsed); + } #[test] fn parse_empty_gas_price() { @@ -840,6 +840,6 @@ mod tests { denom: "token3".to_owned(), }]; - assert_eq!(expected, parsed); + assert_eq!(expected, parsed); + } } -}