Skip to content

refactor(api): Convert input_index field from u32 to usize#11

Merged
joshdoman merged 1 commit into
mainfrom
use-usize
Oct 3, 2025
Merged

refactor(api): Convert input_index field from u32 to usize#11
joshdoman merged 1 commit into
mainfrom
use-usize

Conversation

@joshdoman
Copy link
Copy Markdown
Owner

This PR tweaks the API to use usize instead of u32 for the input index field, avoiding unnecessary and repetitive casting.

In addition, this PR adds a check that the input index is within bounds for both the input array and the actual spent outputs. Previously, the latter was not checked, creating the possibility for an out-of-bounds exception.

@joshdoman joshdoman merged commit 472aee7 into main Oct 3, 2025
3 checks passed
@joshdoman joshdoman deleted the use-usize branch October 3, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant