From 792b646a590ef16de7228efa3d44e704504d0718 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 14 May 2024 17:36:22 +0200 Subject: [PATCH] fix: serde rename camelcase (#748) --- crates/eips/src/eip6110.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/eips/src/eip6110.rs b/crates/eips/src/eip6110.rs index d7fd5c09fbb..f8bb166132d 100644 --- a/crates/eips/src/eip6110.rs +++ b/crates/eips/src/eip6110.rs @@ -15,12 +15,13 @@ pub const MAINNET_DEPOSIT_CONTRACT_ADDRESS: Address = /// This structure maps onto the deposit object from [EIP-6110](https://eips.ethereum.org/EIPS/eip-6110). #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, RlpEncodable, RlpDecodable)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] +#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))] +#[cfg_attr(feature = "ssz", derive(ssz_derive::Encode, ssz_derive::Decode))] #[cfg_attr( any(test, feature = "arbitrary"), derive(proptest_derive::Arbitrary, arbitrary::Arbitrary) )] -#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] -#[cfg_attr(feature = "ssz", derive(ssz_derive::Encode, ssz_derive::Decode))] pub struct DepositRequest { /// Validator public key pub pubkey: FixedBytes<48>,