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
This PR is part of #4794. It implements the bare minimum to support
u256
constants across the stack.They are represented in sway in hex literals with
u256
suffixes. Hex without suffix will still beb256
, for backward compatibility until we implementu256
completely. Then we can decide what to do.There are multiple places in the code that will fail if the literal does not fit in u64. This will be fixed later in a specific PR for big u256. Some places have temporary
unwrap()
, that will be removed later. I can try to remove them now, if necessary.I am leaving all documentation updates for when everything is implemented.
Checklist
Breaking*
orNew Feature
labels where relevant.