From e84c0e55bf34b0083968e0efc2947d32d3fb33b3 Mon Sep 17 00:00:00 2001 From: elmattic Date: Thu, 17 Oct 2024 11:13:03 +0200 Subject: [PATCH] Uncomment-out and fix code --- src/rpc/methods/eth/filter/mod.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/rpc/methods/eth/filter/mod.rs b/src/rpc/methods/eth/filter/mod.rs index 2bb074a6fde6..c2e2aa3f810b 100644 --- a/src/rpc/methods/eth/filter/mod.rs +++ b/src/rpc/methods/eth/filter/mod.rs @@ -661,19 +661,19 @@ mod tests { assert_eq!(res[0].codec, IPLD_RAW); } - // #[test] - // fn test_parse_eth_topics() { - // let topics = EthTopicSpec(vec![EthHashList(vec![EthHash::default()])]); - // let actual = parse_eth_topics(&topics).expect("Failed to parse topics"); - - // let mut expected = HashMap::with_capacity(4); - // expected.insert( - // "t1".to_string(), - // vec![EthHash::default().0.as_bytes().to_vec()], - // ); - - // assert_eq!(actual, expected); - // } + #[test] + fn test_parse_eth_topics() { + let topics = EthTopicSpec(vec![EthHashList::List(vec![EthHash::default()])]); + let actual = parse_eth_topics(&topics).expect("Failed to parse topics"); + + let mut expected = HashMap::with_capacity(4); + expected.insert( + "t1".to_string(), + vec![EthHash::default().0.as_bytes().to_vec()], + ); + + assert_eq!(actual, expected); + } #[test] fn test_hex_str_to_epoch() {