chore(traverse): make era enum serializable (#467)

This commit is contained in:
Santiago Carmuega 2024-05-24 17:21:17 -03:00 committed by GitHub
parent e64b4a0f2b
commit 69de222dbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,