From 656a5b25a2e4f933e17e0aa8d9ff5c8ab69ca7d0 Mon Sep 17 00:00:00 2001 From: Ryan Schneider Date: Wed, 11 Dec 2024 15:38:56 -0800 Subject: [PATCH] fixup(fmt): fix format errors --- crates/eips/src/eip6110.rs | 2 +- crates/eips/src/eip7002.rs | 2 +- crates/eips/src/eip7251.rs | 2 +- crates/rpc-types-beacon/src/relay.rs | 2 +- crates/rpc-types-beacon/src/requests.rs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/eips/src/eip6110.rs b/crates/eips/src/eip6110.rs index 2420055bb3a..3f25c19489e 100644 --- a/crates/eips/src/eip6110.rs +++ b/crates/eips/src/eip6110.rs @@ -135,4 +135,4 @@ mod tests { // Check if the serialized JSON matches the expected JSON structure assert_eq!(serialized_json, json_data); } -} \ No newline at end of file +} diff --git a/crates/eips/src/eip7002.rs b/crates/eips/src/eip7002.rs index 0856cea9de7..ce421602497 100644 --- a/crates/eips/src/eip7002.rs +++ b/crates/eips/src/eip7002.rs @@ -122,4 +122,4 @@ mod tests { let expected_json = r#"{"sourceAddress":"0xae0e8770147aaa6828a0d6f642504663f10f7d1e","validatorPubkey":"0x8e8d8749f6bc79b78be7cc6e49ff640e608454840c360b344c3a4d9b7428e280e7f40d2271bad65d8cbbfdd43cb8793b","amount":"0x1"}"#; assert_eq!(serialized_json, expected_json); } -} \ No newline at end of file +} diff --git a/crates/eips/src/eip7251.rs b/crates/eips/src/eip7251.rs index ac2ef0fafe4..c786d0c3ae3 100644 --- a/crates/eips/src/eip7251.rs +++ b/crates/eips/src/eip7251.rs @@ -93,4 +93,4 @@ mod tests { let expected_json = r#"{"sourceAddress":"0x007eabca654e67103df02f49ebdc5f6cd9387a07","sourcePubkey":"0xb13ff174911d0137e5f2b739fbf172b22cba35a037ef1edb03683b75c9abf5b271f8d48ad279cc89c7fae91db631c1e7","targetPubkey":"0xd0e5be6b709f2dc02a49f6e37e0d03b7d832b79b0db1c8bbfd5b81b8e57b79a1282fb99a671b4629a0e0bfffa7cf6d4f"}"#; assert_eq!(serialized_json, expected_json); } -} \ No newline at end of file +} diff --git a/crates/rpc-types-beacon/src/relay.rs b/crates/rpc-types-beacon/src/relay.rs index 24312e764ed..1ebc17c34d1 100644 --- a/crates/rpc-types-beacon/src/relay.rs +++ b/crates/rpc-types-beacon/src/relay.rs @@ -2,6 +2,7 @@ //! //! See also +use crate::requests::ExecutionRequestsV4; use crate::{BlsPublicKey, BlsSignature}; use alloy_primitives::{Address, B256, U256}; use alloy_rpc_types_engine::{ @@ -9,7 +10,6 @@ use alloy_rpc_types_engine::{ }; use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DisplayFromStr}; -use crate::requests::ExecutionRequestsV4; /// Represents an entry of the `/relay/v1/builder/validators` endpoint #[serde_as] diff --git a/crates/rpc-types-beacon/src/requests.rs b/crates/rpc-types-beacon/src/requests.rs index 6d8068970dc..896f20ba99b 100644 --- a/crates/rpc-types-beacon/src/requests.rs +++ b/crates/rpc-types-beacon/src/requests.rs @@ -1,7 +1,7 @@ -use serde::{Deserialize, Serialize}; use alloy_eips::eip6110::DepositRequest; use alloy_eips::eip7002::WithdrawalRequest; use alloy_eips::eip7251::ConsolidationRequest; +use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(deny_unknown_fields)] @@ -15,4 +15,4 @@ pub struct ExecutionRequestsV4 { pub withdrawals: Vec, /// The requested consolidations. pub consolidations: Vec, -} \ No newline at end of file +}