chore(traverse): make era enum serializable (#467)
This commit is contained in:
parent
e92958ec6d
commit
3a83c1fdad
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
use std::{borrow::Cow, fmt::Display, hash::Hash as StdHash};
|
use std::{borrow::Cow, fmt::Display, hash::Hash as StdHash};
|
||||||
|
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
use pallas_codec::utils::{KeepRaw, KeyValuePairs, NonEmptyKeyValuePairs, NonZeroInt};
|
use pallas_codec::utils::{KeepRaw, KeyValuePairs, NonEmptyKeyValuePairs, NonZeroInt};
|
||||||
|
|
@ -34,7 +35,7 @@ pub mod witnesses;
|
||||||
// TODO: move to genesis crate
|
// TODO: move to genesis crate
|
||||||
pub mod wellknown;
|
pub mod wellknown;
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub enum Era {
|
pub enum Era {
|
||||||
Byron,
|
Byron,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue