Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Aug 27, 2024
1 parent 2839bbf commit 8c4309e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ func TestSyncEndpoints_ListOffChainData(t *testing.T) {
}

func generateRandomHashes(t *testing.T, numOfHashes int) []types.ArgHash {
t.Helper()

hashes := make([]types.ArgHash, numOfHashes)
for i := 0; i < numOfHashes; i++ {
hashes[i] = types.ArgHash(generateRandomHash(t))
Expand All @@ -157,6 +159,8 @@ func generateRandomHashes(t *testing.T, numOfHashes int) []types.ArgHash {
}

func generateRandomHash(t *testing.T) common.Hash {
t.Helper()

randomData := make([]byte, 32)

_, err := rand.Read(randomData)
Expand Down

0 comments on commit 8c4309e

Please sign in to comment.