From 19722fceb3ab76f01aef58e877ee26bedeaccd64 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 10 May 2020 11:50:15 -0700 Subject: [PATCH] Fixup supply_with_commitment --- client/src/rpc_client.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index 38cf64773..1868280bc 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -183,13 +183,7 @@ impl RpcClient { &self, commitment_config: CommitmentConfig, ) -> RpcResult { - let response = self - .client - .send(&RpcRequest::GetSupply, json!([commitment_config]), 0) - .map_err(|err| err.into_with_command("GetSupply"))?; - - serde_json::from_value::>(response) - .map_err(|err| ClientError::new_with_command(err.into(), "GetSupply")) + self.send(RpcRequest::GetSupply, json!([commitment_config]), 0) } pub fn total_supply(&self) -> ClientResult {