Skip to content

Commit

Permalink
return unimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jul 19, 2024
1 parent dfd6d40 commit 7c1713d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions crates/rpc/rpc-eth-api/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ 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_reference: BlockNumberOrTag,
) -> RpcResult<Account>;
async fn get_account(&self, address: Address, block: BlockId) -> RpcResult<Account>;

/// Introduced in EIP-1559, returns suggestion for the priority for dynamic fee transactions.
#[method(name = "maxPriorityFeePerGas")]
Expand Down Expand Up @@ -630,12 +626,8 @@ where
}

/// Handler for: `eth_getAccount`
async fn get_account(
&self,
_address: Address,
_block_reference: BlockNumberOrTag,
) -> RpcResult<Account> {
unimplemented!();
async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult<Account> {
Err(internal_rpc_err("unimplemented"))
}

/// Handler for: `eth_maxPriorityFeePerGas`
Expand Down

0 comments on commit 7c1713d

Please sign in to comment.