diff --git a/rnex-core/src/grpc/account.rs b/rnex-core/src/grpc/account.rs index 3bd9445..445a00c 100644 --- a/rnex-core/src/grpc/account.rs +++ b/rnex-core/src/grpc/account.rs @@ -52,7 +52,7 @@ pub struct Client(NexAccountServiceClient); //(reqwest::Client); impl Client { pub async fn new() -> Result { - let client = NexAccountServiceClient::connect(NEX_ACCOUNT_URL.as_str()).await?; + let client = nex_account::grpc_client().await.unwrap(); Ok(Self(client)) }