From f5632e772f91374d7299c2c9c3c2eb9e4145733a Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Wed, 13 Nov 2024 20:07:29 +0400 Subject: [PATCH 1/2] add v alias --- crates/eip7702/src/auth_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eip7702/src/auth_list.rs b/crates/eip7702/src/auth_list.rs index ab38a39..b0422fe 100644 --- a/crates/eip7702/src/auth_list.rs +++ b/crates/eip7702/src/auth_list.rs @@ -111,7 +111,7 @@ pub struct SignedAuthorization { inner: Authorization, /// Signature parity value. We allow any [`U8`] here, however, the only valid values are `0` /// and `1` and anything else will result in error during recovery. - #[cfg_attr(feature = "serde", serde(rename = "yParity"))] + #[cfg_attr(feature = "serde", serde(rename = "yParity", alias = "V"))] y_parity: U8, /// Signature `r` value. r: U256, From d007acd4ed41bdf9441cf1b72d65ce05f0bf28b2 Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Wed, 13 Nov 2024 20:08:22 +0400 Subject: [PATCH 2/2] v --- crates/eip7702/src/auth_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eip7702/src/auth_list.rs b/crates/eip7702/src/auth_list.rs index b0422fe..0f89677 100644 --- a/crates/eip7702/src/auth_list.rs +++ b/crates/eip7702/src/auth_list.rs @@ -111,7 +111,7 @@ pub struct SignedAuthorization { inner: Authorization, /// Signature parity value. We allow any [`U8`] here, however, the only valid values are `0` /// and `1` and anything else will result in error during recovery. - #[cfg_attr(feature = "serde", serde(rename = "yParity", alias = "V"))] + #[cfg_attr(feature = "serde", serde(rename = "yParity", alias = "v"))] y_parity: U8, /// Signature `r` value. r: U256,