From 44051ef77146003adb100cf87952da42a68e4174 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Tue, 23 Apr 2024 09:20:07 +1000 Subject: [PATCH] Pin to latest ENR (#252) * Pin to latest ENR * Correct tests for latest ENR --- Cargo.toml | 2 +- src/discv5/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fcbb6e381..65d38cd04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] exclude = [".gitignore", ".github/*"] [dependencies] -enr = { version = "0.11", features = ["k256", "ed25519"] } +enr = { version = "0.12", features = ["k256", "ed25519"] } tokio = { version = "1", features = ["net", "sync", "macros", "rt"] } libp2p = { version = "0.53", features = ["ed25519", "secp256k1"], optional = true } zeroize = { version = "1", features = ["zeroize_derive"] } diff --git a/src/discv5/test.rs b/src/discv5/test.rs index db5edf2a0..ff8afadf3 100644 --- a/src/discv5/test.rs +++ b/src/discv5/test.rs @@ -704,7 +704,7 @@ async fn test_predicate_search() { // Predicate function for filtering enrs let predicate = move |enr: &Enr| { - if let Some(v) = enr.get("attnets") { + if let Some(Ok(v)) = enr.get_decodable::("attnets") { v == required_attnet_value.to_vec().as_slice() } else { false