mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
16 lines
337 B
Go
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
|
|
}
|