From 897c05254eee78e159ff512aa915e3ffa084e752 Mon Sep 17 00:00:00 2001 From: Thiago Scalone Date: Fri, 31 May 2024 18:21:44 -0300 Subject: [PATCH] Add eth_accounts to ppc server --- src/eth/rpc/rpc_server.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/eth/rpc/rpc_server.rs b/src/eth/rpc/rpc_server.rs index 21d5bf41f..17ebc8f49 100644 --- a/src/eth/rpc/rpc_server.rs +++ b/src/eth/rpc/rpc_server.rs @@ -146,6 +146,7 @@ fn register_methods(mut module: RpcModule) -> anyhow::Result, ctx: Arc) -> String { hex_num(ctx.chain_id) } +#[tracing::instrument(name = "rpc::eth_accounts", parent = None, skip_all)] +async fn eth_accounts(_: Params<'_>, _ctx: Arc) -> anyhow::Result { + Ok(json!([])) +} + #[tracing::instrument(name = "rpc::web3_clientVersion", parent = None, skip_all)] async fn web3_client_version(_: Params<'_>, ctx: Arc) -> String { ctx.client_version.to_owned()