2021-07-26 22:27:05 +00:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-02-08 09:30:06 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-09-23 18:53:46 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/testing/require"
|
2021-07-26 22:27:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestBeaconState_AppendCurrentEpochAttestations(t *testing.T) {
|
2022-02-08 09:30:06 +00:00
|
|
|
s, err := InitializeFromProtoUnsafe(ðpb.BeaconStateAltair{})
|
|
|
|
require.NoError(t, err)
|
2022-05-09 13:02:34 +00:00
|
|
|
require.ErrorContains(t, "AppendCurrentEpochAttestations is not supported", s.AppendCurrentEpochAttestations(nil))
|
2021-07-26 22:27:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestBeaconState_AppendPreviousEpochAttestations(t *testing.T) {
|
2022-02-08 09:30:06 +00:00
|
|
|
s, err := InitializeFromProtoUnsafe(ðpb.BeaconStateAltair{})
|
|
|
|
require.NoError(t, err)
|
2022-05-09 13:02:34 +00:00
|
|
|
require.ErrorContains(t, "AppendPreviousEpochAttestations is not supported", s.AppendPreviousEpochAttestations(nil))
|
2021-07-26 22:27:05 +00:00
|
|
|
}
|