You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
There have been changes to the VM specs where the return type has been
updated from `u16` to `u64` or from `u8` to `u16` for inputs. These
changes are now reflected in the std-lib's `Inputs` library. Specs:
https://github.com/FuelLabs/fuel-specs/blob/master/src/tx-format/input.mdCloses#6107
## Breaking
This is a breaking change. Any use of the following will need to be
updated:
- `input_count()` now returns a `u16`
- `input_witness_index()` now returns a `Option<u16>`
- `input_predicate_length()` now returns a `Option<u64>`
- `input_predicate_data_length()` now returns a `Option<u64>`
- `input_message_data_length()` now returns a `u64`
## Checklist
- [x] I have linked to any relevant issues.
- [x] I have commented my code, particularly in hard-to-understand
areas.
- [x] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] If my change requires substantial documentation changes, I have
[requested support from the DevRel
team](https://github.com/FuelLabs/devrel-requests/issues/new/choose)
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.
---------
Co-authored-by: IGI-111 <igi-111@protonmail.com>
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
Some of the functions in the
Inputs
library return types do not match the VM spec, these need to be updated to reflect the changes made.The text was updated successfully, but these errors were encountered: