Skip to content

Commit

Permalink
chore: use always Mi as unit
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd committed Feb 12, 2024
1 parent 1487a2b commit f29a0e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/routes/chrysalis/transactionhistory/download/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function post(
return null;
}

const transactionHistoryDownload = await ChrysalisTangleHelper.transactionHistoryDownload(networkConfig, request.address);
const transactionHistoryDownload: string = await ChrysalisTangleHelper.transactionHistoryDownload(networkConfig, request.address);

const parsed = parseResponse(transactionHistoryDownload);

Expand Down Expand Up @@ -142,6 +142,6 @@ function parseRow(row: string): IParsedRow {
inputsCount,
outputsCount,
addressBalanceChange,
addressBalanceChangeFormatted: UnitsHelper.formatBest(Number(addressBalanceChange)),
addressBalanceChangeFormatted: UnitsHelper.formatUnits(Number(addressBalanceChange), "Mi"),
};
}

0 comments on commit f29a0e4

Please sign in to comment.