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 {