Corrected err return for GenesisState while calling db.View (#12325)

This commit is contained in:
Cyyber Ttechno 2023-04-25 08:27:07 +05:30 committed by GitHub
parent 08d6eccfb3
commit efdda168c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,9 +97,8 @@ func (s *Store) GenesisState(ctx context.Context) (state.BeaconState, error) {
return valErr
}
var crtErr error
st, err = s.unmarshalState(ctx, enc, valEntries)
return crtErr
return err
})
if err != nil {
return nil, err