From 93804001f117bac7ad9ab921f4f123cb2c1cfe79 Mon Sep 17 00:00:00 2001 From: Fuyao Zhao Date: Sat, 28 Jan 2023 12:06:12 -0800 Subject: [PATCH] fix(sdk): fix getprice api visibility (#305) --- packages/sdk/src/utils/price.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/utils/price.ts b/packages/sdk/src/utils/price.ts index 79cdec7c16..bf78c57024 100644 --- a/packages/sdk/src/utils/price.ts +++ b/packages/sdk/src/utils/price.ts @@ -15,7 +15,7 @@ export function getPriceClient(address?: string) { const priceMap = new Map>() let priceClient: PriceServiceClient -export async function getPriceByTypeOrSymbol(date: Date, coinId: CoinID): Promise { +async function getPriceByTypeOrSymbol(date: Date, coinId: CoinID): Promise { if (!priceClient) { priceClient = getPriceClient() } @@ -65,7 +65,7 @@ export async function getPriceByTypeOrSymbol(date: Date, coinId: CoinID): Promis * @param coinType * @param date */ -async function getPriceByType(chainId: string, coinType: string, date: Date): Promise { +export async function getPriceByType(chainId: string, coinType: string, date: Date): Promise { return getPriceByTypeOrSymbol(date, { address: { chain: chainId,