From 9da4dbfbda36221baa7167ff2fb9be22b503089d Mon Sep 17 00:00:00 2001 From: xaber Date: Thu, 23 Jun 2022 11:18:53 +0800 Subject: [PATCH] fix: tokenId params to symbol --- src/api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ced559c..e8168b2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -92,9 +92,9 @@ export const getEverpayBalances = async (apiHost: string, { } export const getEverpayTransactions = async (apiHost: string, params: GetEverpayTransactionsParams): Promise => { - const { account, page, tokenId, action, withoutAction } = params + const { account, page, symbol, action, withoutAction } = params const baseUrl = account !== undefined ? `${apiHost}/txs/${account}` : `${apiHost}/txs` - const queryString = qsStringify({ page, tokenId, action, withoutAction }, { skipNull: true }) + const queryString = qsStringify({ page, symbol, action, withoutAction }, { skipNull: true }) const result = await sendRequest({ ...rConfig, url: `${baseUrl}${queryString !== '' ? `?${queryString}` : ''}`,