From 69de222dbe3a192337e7ddb3827ef49ee8d48aa3 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Fri, 24 May 2024 17:21:17 -0300 Subject: [PATCH] chore(traverse): make era enum serializable (#467) --- pallas-traverse/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pallas-traverse/src/lib.rs b/pallas-traverse/src/lib.rs index b6cddd8..6973df9 100644 --- a/pallas-traverse/src/lib.rs +++ b/pallas-traverse/src/lib.rs @@ -2,6 +2,7 @@ use std::{borrow::Cow, fmt::Display, hash::Hash as StdHash}; +use serde::{Deserialize, Serialize}; use thiserror::Error; use pallas_codec::utils::{KeepRaw, KeyValuePairs, NonEmptyKeyValuePairs, NonZeroInt}; @@ -34,7 +35,7 @@ pub mod witnesses; // TODO: move to genesis crate pub mod wellknown; -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] #[non_exhaustive] pub enum Era { Byron,