Skip to content

Conversation

@AvivYossef-starkware
Copy link
Contributor

@AvivYossef-starkware AvivYossef-starkware commented Feb 10, 2026

Note

Low Risk
Behavior is largely unchanged except failures now propagate as typed errors instead of unwrap() panics; risk is limited to changed error surfaces for callers.

Overview
Refactors create_commitment_infos and helpers to stop panicking on invalid data / DB/proof failures by introducing CommitmentInfosError and returning Result, propagating errors from leaf fetching, proof traversal, and node-index conversions.

Updates call sites in flow tests and the runner: tests now .unwrap(), while starknet_os_runner maps failures into ProofProviderError instead of crashing.

Written by Cursor Bugbot for commit 30c73a1. This will update automatically on new commits. Configure here.

@AvivYossef-starkware AvivYossef-starkware marked this pull request as ready for review February 10, 2026 13:01
@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

AvivYossef-starkware commented Feb 10, 2026

Copy link
Collaborator

@Yoni-Starkware Yoni-Starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

@Yoni-Starkware reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1).

@AvivYossef-starkware AvivYossef-starkware force-pushed the refactor_create_commitment_info_to_not_panic branch from 87e3132 to fa09ff1 Compare February 10, 2026 13:09
@AvivYossef-starkware AvivYossef-starkware changed the base branch from aviv/validate_state_diff to main-v0.14.2 February 10, 2026 13:32
@AvivYossef-starkware AvivYossef-starkware force-pushed the refactor_create_commitment_info_to_not_panic branch from fa09ff1 to 30c73a1 Compare February 10, 2026 13:40
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.

3 participants