Files
prysm/testing/util/slot.go
Bastin 92bd211e4d upgrade v6 to v7 (#15989)
* upgrade v6 to v7

* changelog

* update-go-ssz
2025-11-06 16:16:23 +00:00

16 lines
337 B
Go

package util
import (
"testing"
"github.com/OffchainLabs/prysm/v7/consensus-types/primitives"
"github.com/OffchainLabs/prysm/v7/testing/require"
"github.com/OffchainLabs/prysm/v7/time/slots"
)
func SlotAtEpoch(t *testing.T, e primitives.Epoch) primitives.Slot {
s, err := slots.EpochStart(e)
require.NoError(t, err)
return s
}