diff --git a/lib/ain-grpc/src/rpc.rs b/lib/ain-grpc/src/rpc.rs index fcd434864a..793c16f83c 100644 --- a/lib/ain-grpc/src/rpc.rs +++ b/lib/ain-grpc/src/rpc.rs @@ -25,7 +25,7 @@ pub trait MetachainRPC { fn call(&self, input: CallRequest) -> Result; #[method(name = "eth_accounts")] - fn accounts(&self) -> Result>; + fn accounts(&self) -> Result>; #[method(name = "eth_getBalance")] fn get_balance(&self, address: H160) -> Result; @@ -138,9 +138,9 @@ impl MetachainRPCServer for MetachainRPCModule { Ok(hex::encode(data)) } - fn accounts(&self) -> Result> { - // Get from wallet - Ok(vec![]) + fn accounts(&self) -> Result> { + let accounts = ain_cpp_imports::get_accounts().unwrap(); + Ok(accounts) } fn get_balance(&self, address: H160) -> Result {