From 5d0b013fa1e44a942a53732ec34a11bbfb8b7b26 Mon Sep 17 00:00:00 2001 From: Snezhkko Date: Mon, 1 Dec 2025 08:30:57 +0200 Subject: [PATCH 1/2] fix(rpc): incorrect constructor return type --- beacon-chain/rpc/lookup/stater.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-chain/rpc/lookup/stater.go b/beacon-chain/rpc/lookup/stater.go index b0fd36b6cdb4..a3bd0f250fb1 100644 --- a/beacon-chain/rpc/lookup/stater.go +++ b/beacon-chain/rpc/lookup/stater.go @@ -82,8 +82,8 @@ type StateRootNotFoundError struct { } // NewStateRootNotFoundError creates a new error instance. -func NewStateRootNotFoundError(stateRootsSize int) StateNotFoundError { - return StateNotFoundError{ +func NewStateRootNotFoundError(stateRootsSize int) StateRootNotFoundError { + return StateRootNotFoundError{ message: fmt.Sprintf("state root not found in the last %d state roots", stateRootsSize), } } From 5d0cafc7ecfed1645c9d5c3663cfd76c93fae67a Mon Sep 17 00:00:00 2001 From: Snezhkko Date: Mon, 1 Dec 2025 08:33:10 +0200 Subject: [PATCH 2/2] Add changelog --- changelog/Snezhkko_fix-type.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/Snezhkko_fix-type.md diff --git a/changelog/Snezhkko_fix-type.md b/changelog/Snezhkko_fix-type.md new file mode 100644 index 000000000000..264398fb20c8 --- /dev/null +++ b/changelog/Snezhkko_fix-type.md @@ -0,0 +1,3 @@ +## Fixed + +- incorrect constructor return type [#16084](https://github.com/OffchainLabs/prysm/pull/16084)