Skip to content

Commit

Permalink
Update Tron.ts
Browse files Browse the repository at this point in the history
Fix loading more than 200 transactions in tron wallet
fix LedgerHQ#1355
  • Loading branch information
galmi authored Aug 25, 2021
1 parent 51b819b commit 1b9c1b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/Tron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ export async function fetchTronAccountTxs(
): Promise<TrongridTxInfo[]> {
const getTxs = async (url: string) =>
fetch(url).then((resp) => {
const nextUrl = get(resp, "meta.links.next");
const nextMetaLink = get(resp, "meta.links.next");
const nextUrl = (new URL(nextMetaLink, getBaseApiUrl())).toString();
const resultsWithTxInfo = promiseAllBatched(
3,
resp.data || [],
Expand Down

0 comments on commit 1b9c1b2

Please sign in to comment.