mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
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. --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
105 B
105 B
Fixed
- incorrect constructor return type #16084