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
5 |
6 |
7 | fn main(wrapper: Wrapper) -> raw_slice {
| ^^^^^^^ Returning a type containing `raw_slice` from `main()` is not allowed. Consider converting it into a flat `raw_slice` first.
8 | wrapper.field
9 | }
It would seem that 0.46.0 dropped support for raw_slice in inputs or this is a regression.
In either case the message needs to be updated since the returned raw_slice is the top level type.
The text was updated successfully, but these errors were encountered:
## Description
This PR, for encoding v1, allows string slices in inputs and outputs of
scripts and contracts; and in inputs of predicates.
For encoding v0, the limitation is kept.
This PR will also land the necessary start of future improvements on
"slices" (including string slices).
This PR closes#5145
## 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 <[email protected]>
Causes the following error:
It would seem that
0.46.0
dropped support forraw_slice
in inputs or this is a regression.In either case the message needs to be updated since the returned
raw_slice
is the top level type.The text was updated successfully, but these errors were encountered: