2021-11-22 17:37:55 +00:00
|
|
|
package v3
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-08-16 12:20:13 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/testing/require"
|
2021-11-22 17:37:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestBeaconState_AppendCurrentEpochAttestations(t *testing.T) {
|
2022-02-08 09:30:06 +00:00
|
|
|
s, err := InitializeFromProtoUnsafe(ðpb.BeaconStateBellatrix{})
|
|
|
|
require.NoError(t, err)
|
2022-05-09 13:02:34 +00:00
|
|
|
require.ErrorContains(t, "AppendCurrentEpochAttestations is not supported", s.AppendCurrentEpochAttestations(nil))
|
2021-11-22 17:37:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestBeaconState_AppendPreviousEpochAttestations(t *testing.T) {
|
2022-02-08 09:30:06 +00:00
|
|
|
s, err := InitializeFromProtoUnsafe(ðpb.BeaconStateBellatrix{})
|
|
|
|
require.NoError(t, err)
|
2022-05-09 13:02:34 +00:00
|
|
|
require.ErrorContains(t, "AppendPreviousEpochAttestations is not supported", s.AppendPreviousEpochAttestations(nil))
|
2021-11-22 17:37:55 +00:00
|
|
|
}
|