Skip to content

Commit

Permalink
chore: use correct type in getAccount (paradigmxyz#10023)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvares authored and martinezjorge committed Aug 7, 2024
1 parent 2c96ca1 commit 7575861
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions crates/rpc/rpc-eth-api/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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")]
Expand Down Expand Up @@ -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"))
}

Expand Down

0 comments on commit 7575861

Please sign in to comment.