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

Remove BlockHeight arithmetic #596

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Oct 2, 2023

As suggested in FuelLabs/fuel-core#1334, the BlockHeight type should have error-prone arithmetic implementations. In this case it was possible to silently wrap the result, which is even worse.

@Dentosal Dentosal added the fuel-types Related to the `fuel-types` crate. label Oct 2, 2023
@Dentosal Dentosal self-assigned this Oct 2, 2023
@Dentosal Dentosal changed the title Remove BlockHeigth arithmetic Remove BlockHeight arithmetic Oct 2, 2023
@Dentosal Dentosal force-pushed the dento/remove-block-height-arithmetic branch from c9aff5a to e6b5be5 Compare October 2, 2023 16:10
@Dentosal Dentosal added the breaking A breaking api change label Oct 2, 2023
@Dentosal Dentosal requested a review from a team October 2, 2023 16:14
@Dentosal Dentosal marked this pull request as ready for review October 2, 2023 16:14
@Dentosal Dentosal added this pull request to the merge queue Oct 2, 2023
Merged via the queue into master with commit f2a6e67 Oct 2, 2023
39 of 73 checks passed
@Dentosal Dentosal deleted the dento/remove-block-height-arithmetic branch October 2, 2023 16:43
xgreenx added a commit to FuelLabs/fuel-core that referenced this pull request Oct 3, 2023
…#1392)

Fixes #1334

See FuelLabs/fuel-vm#596 for follow-up work.

---------

Co-authored-by: Green Baneling <XgreenX9999@gmail.com>
Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh>
@xgreenx xgreenx mentioned this pull request Oct 13, 2023
GoldenPath1109 added a commit to GoldenPath1109/fuel-core that referenced this pull request Sep 7, 2024
… (#1392)

Fixes FuelLabs/fuel-core#1334

See FuelLabs/fuel-vm#596 for follow-up work.

---------

Co-authored-by: Green Baneling <XgreenX9999@gmail.com>
Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking api change fuel-types Related to the `fuel-types` crate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants