From ef0a44718187df4fb95cb3bb6f1b1425ee1fbc8b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 19 Jul 2024 09:51:39 +0200 Subject: [PATCH] chore(rpc): return unimplemented (#9639) --- crates/rpc/rpc-eth-api/src/core.rs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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`