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

Replace a call to error in our FFI with a safe alternative #650

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

WhatisRT
Copy link
Collaborator

Description

There was no need to be unsafe here. Our code just happened to not match on that proof, but this could have broken at any time when doing refactoring. In the Consensus spec (which copies our code), this actually caused a crash.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Any semantic changes to the specifications are documented in CHANGELOG.md
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

There was no need to be unsafe here. Our code just happened to not
match on that proof, but this could have broken at any time when doing
refactoring. In the Consensus spec, this actually caused a crash.
@WhatisRT WhatisRT requested a review from Soupstraw January 23, 2025 12:57
@WhatisRT WhatisRT merged commit 64acefe into master Feb 3, 2025
4 of 8 checks passed
@WhatisRT WhatisRT deleted the andre/small-fix branch February 3, 2025 11:05
github-actions bot added a commit that referenced this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants