Skip to content

Commit

Permalink
fixed return type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidu28 committed Feb 28, 2024
1 parent 2c67b10 commit d9c7071
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions eigen_pod_proofs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package eigenpodproofs

import (
"encoding/json"
"errors"
"time"

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down

0 comments on commit d9c7071

Please sign in to comment.