From 0266eac7c0a1d497cddb646c4ff96b857c4873b6 Mon Sep 17 00:00:00 2001 From: LINCKODE Date: Wed, 2 Oct 2024 19:28:38 +0300 Subject: [PATCH] Fix pointer issue. --- store/store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/store/store.go b/store/store.go index 6f34b2b..7b620f5 100644 --- a/store/store.go +++ b/store/store.go @@ -726,12 +726,12 @@ func (s *PebbleStore) GetLastTickQuorumDataPerEpoch(epoch uint32) (*protobuff.Qu } defer closer.Close() - var quorumData *protobuff.QuorumTickData + var quorumData protobuff.QuorumTickData - err = proto.Unmarshal(value, quorumData) + err = proto.Unmarshal(value, &quorumData) if err != nil { return nil, errors.Wrapf(err, "deserializing quorum tick data for last tick of epoch %d", epoch) } - return quorumData, nil + return &quorumData, nil }