From d9c7071a598394f6b54bd7537ed04eb8d79ae3e6 Mon Sep 17 00:00:00 2001 From: SiddyJ Date: Wed, 28 Feb 2024 14:30:24 -0800 Subject: [PATCH] fixed return type issues --- eigen_pod_proofs.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eigen_pod_proofs.go b/eigen_pod_proofs.go index 7f7de252..e35e6240 100644 --- a/eigen_pod_proofs.go +++ b/eigen_pod_proofs.go @@ -1,7 +1,6 @@ package eigenpodproofs import ( - "encoding/json" "errors" "time" @@ -54,7 +53,7 @@ func (epp *EigenPodProofs) ComputeBeaconStateRoot(beaconState *deneb.BeaconState if err != nil { return nil, err } - return stateRoot[:], nil + return stateRoot, nil }, ) if err != nil { @@ -84,7 +83,7 @@ func (epp *EigenPodProofs) ComputeBeaconStateTopLevelRoots(beaconState *spec.Ver if err != nil { return nil, err } - return json.Marshal(beaconStateTopLevelRoots) + return beaconStateTopLevelRoots, nil }, ) if err != nil { @@ -93,7 +92,7 @@ func (epp *EigenPodProofs) ComputeBeaconStateTopLevelRoots(beaconState *spec.Ver beaconStateTopLevelRoots, ok := beaconStateTopLevelRootsInterface.(*beacon.BeaconStateTopLevelRoots) if !ok { - return nil, errors.New("beacon state top level roots is not of type []byte") + return nil, errors.New("beacon state top level roots is not of type *beacon.BeaconStateTopLevelRoots") } return beaconStateTopLevelRoots, err }