Skip to content

Commit

Permalink
Add Arbitrary for Graffiti
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Sep 18, 2020
1 parent 6e02e12 commit 1fb92df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/types/src/graffiti.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub const GRAFFITI_BYTES_LEN: usize = 32;

#[derive(Default, Debug, PartialEq, Clone, Copy, Serialize, Deserialize)]
#[serde(transparent)]
#[cfg_attr(feature = "arbitrary-fuzz", derive(arbitrary::Arbitrary))]
pub struct Graffiti(#[serde(with = "serde_graffiti")] pub [u8; GRAFFITI_BYTES_LEN]);

impl Graffiti {
Expand Down

0 comments on commit 1fb92df

Please sign in to comment.