Skip to content

Commit

Permalink
fix(sdk): fix getprice api visibility (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Jan 28, 2023
1 parent 0b4f1cc commit 9380400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/utils/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getPriceClient(address?: string) {
const priceMap = new Map<string, Promise<number>>()
let priceClient: PriceServiceClient<RetryOptions>

export async function getPriceByTypeOrSymbol(date: Date, coinId: CoinID): Promise<number> {
async function getPriceByTypeOrSymbol(date: Date, coinId: CoinID): Promise<number> {
if (!priceClient) {
priceClient = getPriceClient()
}
Expand Down Expand Up @@ -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<number> {
export async function getPriceByType(chainId: string, coinType: string, date: Date): Promise<number> {
return getPriceByTypeOrSymbol(date, {
address: {
chain: chainId,
Expand Down

0 comments on commit 9380400

Please sign in to comment.