Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: string slice decoding #1483

Merged
merged 1 commit into from
Aug 16, 2024
Merged

fix: string slice decoding #1483

merged 1 commit into from
Aug 16, 2024

Conversation

segfault-magnet
Copy link
Contributor

closes: #1482

The decoder didn't report the correct number of bytes read when decoding a string slice.

Checklist

  • I have linked to any relevant issues.
  • [] I have updated the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary labels.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@segfault-magnet segfault-magnet added the bug Something isn't working label Aug 16, 2024
@segfault-magnet segfault-magnet self-assigned this Aug 16, 2024
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, nice catch. And thanks for finding this, @sdankel

sdankel added a commit to FuelLabs/sway that referenced this pull request Aug 16, 2024
## Description

Test should all pass once FuelLabs/fuels-rs#1483
is released

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] 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)
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [ ] 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).
- [ ] I have requested a review from the relevant team or maintainers.
@segfault-magnet segfault-magnet merged commit 138d687 into master Aug 16, 2024
43 checks passed
@segfault-magnet segfault-magnet deleted the bug/string_slice_decode branch August 16, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: contract struct not decoded correctly
4 participants