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

Add functionality to increment a b256 #4781

Closed
bitzoic opened this issue Jul 10, 2023 · 1 comment
Closed

Add functionality to increment a b256 #4781

bitzoic opened this issue Jul 10, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request lib: std Standard library

Comments

@bitzoic
Copy link
Member

bitzoic commented Jul 10, 2023

Description

The Sway language does not currently support any mathematical operations on a b256. Fuel core v0.19 support will add the WQOP op code for add, sub, shifts, etc but until then an increment by u64 function may be implemented.

https://github.com/FuelLabs/fuel-specs/blob/master/src/fuel-vm/instruction-set.md#wqop-misc-256-bit-integer-operations

Motivation

This functionality is required to optimize storage read/write operations.

@bitzoic bitzoic added enhancement New feature or request lib: std Standard library labels Jul 10, 2023
@bitzoic bitzoic self-assigned this Jul 10, 2023
@bitzoic bitzoic linked a pull request Jul 11, 2023 that will close this issue
7 tasks
@bitzoic
Copy link
Member Author

bitzoic commented Sep 7, 2023

Closing in favor of #4790

@bitzoic bitzoic closed this as completed Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lib: std Standard library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant