Skip to content

Commit

Permalink
fix: inputs from as number (#34)
Browse files Browse the repository at this point in the history
Description
---
Convert the `inputs_from` to number instead of str. 

Motivation and Context
---

How Has This Been Tested?
---

What process can a PR reviewer use to test or verify this change?
---

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
leet4tari committed Mar 18, 2024
2 parents 4afe87e + 0db1f04 commit 2ae0aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ router.get("/:height_or_hash", async function (req, res) {

let outputs_from = +(req.query.outputs_from || 0);
let outputs_to = +(req.query.outputs_to || 10);
let inputs_from = req.query.inputs_from || 0;
let inputs_from = +(req.query.inputs_from || 0);
let inputs_to = +(req.query.inputs_to || 10);
let kernels_from = +(req.query.kernels_from || 0);
let kernels_to = +(req.query.kernels_to || 10);
Expand Down
2 changes: 1 addition & 1 deletion views/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<th>Proof of Work</th>
<th>Hash</th>
<th>Kernels</th>
<th>Outputs</th>
<th>Δ of Outputs</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 2ae0aa9

Please sign in to comment.