diff --git a/crates/rpc/rpc-eth-api/src/core.rs b/crates/rpc/rpc-eth-api/src/core.rs index 296ee1437c..a0c40490aa 100644 --- a/crates/rpc/rpc-eth-api/src/core.rs +++ b/crates/rpc/rpc-eth-api/src/core.rs @@ -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; + 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")] @@ -630,12 +626,8 @@ where } /// Handler for: `eth_getAccount` - async fn get_account( - &self, - _address: Address, - _block_reference: BlockNumberOrTag, - ) -> RpcResult { - unimplemented!(); + async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult { + Err(internal_rpc_err("unimplemented")) } /// Handler for: `eth_maxPriorityFeePerGas`