Skip to content

Conversation

@Snezhkko
Copy link

@Snezhkko Snezhkko commented Dec 1, 2025

The constructor NewStateRootNotFoundError incorrectly returned StateNotFoundError. This prevented handlers that rely on errors.As(err, *lookup.StateRootNotFoundError) from matching and mapping the error to HTTP 404. The function now returns
StateRootNotFoundError and constructs that type, restoring the intended behavior for “state root not found” cases.

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