Update Inputs
library return types to match VM specs
#6108
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There have been changes to the VM specs where the return type has been updated from
u16
tou64
or fromu8
tou16
for inputs. These changes are now reflected in the std-lib'sInputs
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 au16
input_witness_index()
now returns aOption<u16>
input_predicate_length()
now returns aOption<u64>
input_predicate_data_length()
now returns aOption<u64>
input_message_data_length()
now returns au64
Checklist
Breaking*
orNew Feature
labels where relevant.