From 4e4a0cdfa5cc874ae362ae3fa779e018da96befd Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Wed, 13 Nov 2024 00:00:29 +0400 Subject: [PATCH] fix: `Sealed::hash` serde (#805) fix --- crates/primitives/src/sealed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/primitives/src/sealed.rs b/crates/primitives/src/sealed.rs index fdabe7714..6c896d78b 100644 --- a/crates/primitives/src/sealed.rs +++ b/crates/primitives/src/sealed.rs @@ -14,7 +14,7 @@ pub struct Sealed { #[deref] #[cfg_attr(feature = "serde", serde(flatten))] inner: T, - #[cfg_attr(feature = "serde", serde(flatten, alias = "hash"))] + #[cfg_attr(feature = "serde", serde(rename = "hash"))] /// Its hash. seal: B256, }