From f2bb8e74d9700d8a46487896e085aaecb07a720c Mon Sep 17 00:00:00 2001 From: Miguel Tavares Date: Fri, 2 Aug 2024 12:31:58 -0300 Subject: [PATCH] chore: use correct type in `getAccount` (#10023) --- crates/rpc/rpc-eth-api/src/core.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/crates/rpc/rpc-eth-api/src/core.rs b/crates/rpc/rpc-eth-api/src/core.rs index d77f15cf42..4f90e1686e 100644 --- a/crates/rpc/rpc-eth-api/src/core.rs +++ b/crates/rpc/rpc-eth-api/src/core.rs @@ -4,8 +4,7 @@ use alloy_dyn_abi::TypedData; use jsonrpsee::{core::RpcResult, proc_macros::rpc}; use reth_primitives::{ - transaction::AccessListResult, Account, Address, BlockId, BlockNumberOrTag, Bytes, B256, B64, - U256, U64, + transaction::AccessListResult, Address, BlockId, BlockNumberOrTag, Bytes, B256, B64, U256, U64, }; use reth_rpc_server_types::{result::internal_rpc_err, ToRpcResult}; use reth_rpc_types::{ @@ -250,7 +249,11 @@ pub trait EthApi { /// Returns the account details by specifying an address and a block number/tag #[method(name = "getAccount")] - async fn get_account(&self, address: Address, block: BlockId) -> RpcResult; + async fn get_account( + &self, + address: Address, + block: BlockId, + ) -> RpcResult; /// Introduced in EIP-1559, returns suggestion for the priority for dynamic fee transactions. #[method(name = "maxPriorityFeePerGas")] @@ -626,7 +629,11 @@ where } /// Handler for: `eth_getAccount` - async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult { + async fn get_account( + &self, + _address: Address, + _block: BlockId, + ) -> RpcResult { Err(internal_rpc_err("unimplemented")) }