From 975af0c79b0437e4cdbf008f05d0e65e323c879c Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 26 Jan 2023 12:00:25 +0000 Subject: [PATCH] remove the empty interface and return the array instead --- nym-api/tests/src/endpoints/ContractCache.ts | 6 ++---- nym-api/tests/src/types/ContractCacheTypes.ts | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/nym-api/tests/src/endpoints/ContractCache.ts b/nym-api/tests/src/endpoints/ContractCache.ts index 7ca044d8d1..16ae21f9aa 100644 --- a/nym-api/tests/src/endpoints/ContractCache.ts +++ b/nym-api/tests/src/endpoints/ContractCache.ts @@ -3,8 +3,6 @@ import { AllGateways, AllMixnodes, EpochRewardParams, - BlacklistedGateways, - BlacklistedMixnodes, CurrentEpoch, } from "../types/ContractCacheTypes"; import { APIClient } from "./abstracts/APIClient"; @@ -64,14 +62,14 @@ export default class ContractCache extends APIClient { return response.data; } - public async getBlacklistedMixnodes(): Promise { + public async getBlacklistedMixnodes(): Promise<[]> { const response = await this.restClient.sendGet({ route: `mixnodes/blacklisted`, }); return response.data; } - public async getBlacklistedGateways(): Promise { + public async getBlacklistedGateways(): Promise<[]> { const response = await this.restClient.sendGet({ route: `gateways/blacklisted`, }); diff --git a/nym-api/tests/src/types/ContractCacheTypes.ts b/nym-api/tests/src/types/ContractCacheTypes.ts index 05cfaa2aa8..bf83b0cd95 100644 --- a/nym-api/tests/src/types/ContractCacheTypes.ts +++ b/nym-api/tests/src/types/ContractCacheTypes.ts @@ -75,10 +75,6 @@ export interface MixnodesDetailed { family: string; } -export interface BlacklistedMixnodes {} - -export interface BlacklistedGateways {} - export interface Gateway { host: string; mix_port: number;