Skip to content

Commit

Permalink
chore(src/api): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahut committed Jul 29, 2021
1 parent df0191b commit 0efacf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.js
Expand Up @@ -327,9 +327,9 @@ const bestBlock: HandlerFunction = async function (_req, _res) {
function fixTxValuesToBigInt(tx: postApiV0TransactionsSendRequest) {
// Output value and asset amounts can be received as a number, string, or BigNumber
// So we convert any value to BigNumber to make sure we are sending only JSON-numbers to the explorer API
tx.outputs?.forEach(o => {
tx.outputs.forEach(o => {
o.value = new BigNumber(o.value);
o.assets?.forEach(a => {
o.assets.forEach(a => {
a.amount = new BigNumber(a.amount);
});
});
Expand Down

0 comments on commit 0efacf3

Please sign in to comment.