Skip to content

Commit

Permalink
Pin to latest ENR (#252)
Browse files Browse the repository at this point in the history
* Pin to latest ENR

* Correct tests for latest ENR
  • Loading branch information
AgeManning authored Apr 22, 2024
1 parent e9e0d4f commit 44051ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion src/discv5/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ async fn test_predicate_search() {

// Predicate function for filtering enrs
let predicate = move |enr: &Enr<CombinedKey>| {
if let Some(v) = enr.get("attnets") {
if let Some(Ok(v)) = enr.get_decodable::<Bytes>("attnets") {
v == required_attnet_value.to_vec().as_slice()
} else {
false
Expand Down

0 comments on commit 44051ef

Please sign in to comment.