From e37968b8f62feac14c617939389c0ddb59779ae8 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 4 May 2024 15:30:59 +0200 Subject: [PATCH] feat: derive arbitrary for BlobTransactionSidecar (#679) --- crates/eips/src/eip4844/sidecar.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/eips/src/eip4844/sidecar.rs b/crates/eips/src/eip4844/sidecar.rs index d65fe98f603..0a17968cbdd 100644 --- a/crates/eips/src/eip4844/sidecar.rs +++ b/crates/eips/src/eip4844/sidecar.rs @@ -15,6 +15,10 @@ use alloc::vec::Vec; #[derive(Clone, Debug, Default, PartialEq, Eq, Hash)] #[repr(C)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] +#[cfg_attr( + any(test, feature = "arbitrary"), + derive(proptest_derive::Arbitrary, arbitrary::Arbitrary) +)] pub struct BlobTransactionSidecar { /// The blob data. pub blobs: Vec,