mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use correct type in getAccount (#10023)
This commit is contained in:
@ -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"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user