feat: rm reth-primitives dep (#8097)

This commit is contained in:
Matthias Seitz
2024-05-04 14:40:30 +02:00
committed by GitHub
parent ac1d5324ec
commit 2c70e2ab3b
3 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@ -7208,8 +7208,8 @@ dependencies = [
name = "reth-network-types"
version = "0.2.0-beta.6"
dependencies = [
"alloy-primitives",
"enr",
"reth-primitives",
"reth-rpc-types",
"secp256k1",
"serde_with",

View File

@ -14,7 +14,8 @@ workspace = true
[dependencies]
# reth
reth-rpc-types.workspace = true
reth-primitives.workspace = true
alloy-primitives.workspace = true
# eth
enr.workspace = true

View File

@ -126,7 +126,7 @@ impl std::fmt::Display for AnyNode {
AnyNode::NodeRecord(record) => write!(f, "{record}"),
AnyNode::Enr(enr) => write!(f, "{enr}"),
AnyNode::PeerId(peer_id) => {
write!(f, "enode://{}", reth_primitives::hex::encode(peer_id.as_slice()))
write!(f, "enode://{}", alloy_primitives::hex::encode(peer_id.as_slice()))
}
}
}