From d372b13bbf7c1462017280cfbcb9e0c7b80f7aa7 Mon Sep 17 00:00:00 2001 From: Raneet Debnath Date: Fri, 27 Dec 2024 17:51:46 +0530 Subject: [PATCH] consensus/bor: fix setting of proto message value to correct type --- consensus/bor/heimdall/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/bor/heimdall/client.go b/consensus/bor/heimdall/client.go index 1ec82ba336..67ad49a0e3 100644 --- a/consensus/bor/heimdall/client.go +++ b/consensus/bor/heimdall/client.go @@ -390,7 +390,7 @@ func Fetch[T any](ctx context.Context, request *Request) (*T, error) { return nil, err } - tValue := reflect.ValueOf(&result).Elem() + tValue := reflect.ValueOf(result).Elem() tValue.Set(reflect.ValueOf(p).Elem()) return result, nil