chore: use correct type in getAccount (#10023)

This commit is contained in:
Miguel Tavares
2024-08-02 12:31:58 -03:00
committed by GitHub
parent 06fbdd98d2
commit f2bb8e74d9

View File

@ -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<Account>;
async fn get_account(
&self,
address: Address,
block: BlockId,
) -> RpcResult<reth_rpc_types::Account>;
/// 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<Account> {
async fn get_account(
&self,
_address: Address,
_block: BlockId,
) -> RpcResult<reth_rpc_types::Account> {
Err(internal_rpc_err("unimplemented"))
}