Skip to content

Commit

Permalink
chore: rm reth testing utils dep from reth-primitives-traits
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Nov 14, 2024
1 parent ff6b78a commit 79ca9ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/primitives-traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ proptest = { workspace = true, optional = true }
proptest-arbitrary-interop = { workspace = true, optional = true }

[dev-dependencies]
reth-testing-utils.workspace = true

alloy-primitives = { workspace = true, features = ["arbitrary"] }
alloy-consensus = { workspace = true, features = ["arbitrary"] }

Expand Down
4 changes: 1 addition & 3 deletions crates/primitives-traits/src/header/sealed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,8 @@ pub(super) mod serde_bincode_compat {
#[cfg(test)]
mod tests {
use super::super::{serde_bincode_compat, SealedHeader};

use arbitrary::Arbitrary;
use rand::Rng;
use reth_testing_utils::generators;
use serde::{Deserialize, Serialize};
use serde_with::serde_as;

Expand All @@ -236,7 +234,7 @@ pub(super) mod serde_bincode_compat {
}

let mut bytes = [0u8; 1024];
generators::rng().fill(bytes.as_mut_slice());
rand::thread_rng().fill(&mut bytes[..]);
let data = Data {
transaction: SealedHeader::arbitrary(&mut arbitrary::Unstructured::new(&bytes))
.unwrap(),
Expand Down

0 comments on commit 79ca9ce

Please sign in to comment.