Skip to content

Commit

Permalink
fix: serde rename camelcase (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 14, 2024
1 parent c914fc0 commit 792b646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/eips/src/eip6110.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 792b646

Please sign in to comment.