Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Jul 16, 2024
1 parent d632c18 commit 9e80cfb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions consensus/types/src/deposit_request.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
use crate::test_utils::TestRandom;
use crate::{Hash256, PublicKeyBytes, Signature};
use serde::{Deserialize, Serialize};
use ssz_derive::{Decode, Encode};
use test_random_derive::TestRandom;
use tree_hash_derive::TreeHash;

#[derive(
arbitrary::Arbitrary,
Debug,
PartialEq,
Eq,
Hash,
Clone,
Serialize,
Deserialize,
Encode,
Decode,
TreeHash,
TestRandom,
)]
pub struct DepositRequest {
pub pubkey: PublicKeyBytes,
pub withdrawal_credentials: Hash256,
#[serde(with = "serde_utils::quoted_u64")]
pub amount: u64,
pub signature: Signature,
#[serde(with = "serde_utils::quoted_u64")]
pub index: u64,
}

#[cfg(test)]
mod tests {
use super::*;

ssz_and_tree_hash_tests!(DepositRequest);
}

0 comments on commit 9e80cfb

Please sign in to comment.