Skip to content

Commit

Permalink
Uncomment-out and fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
elmattic committed Oct 17, 2024
1 parent 262cfe9 commit e84c0e5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/rpc/methods/eth/filter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit e84c0e5

Please sign in to comment.