Skip to content

Commit c65f4aa

Browse files
committed
Fix lint errors
1 parent c10453c commit c65f4aa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

encoding/kzg/prover/precompute.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ func (p *SRSTable) GetSubTables(
105105
// We need polynomial degree m < len(SRS)
106106
// (Actually we only access up to index m-cosetSize, but this simpler check is safer)
107107
if m >= uint64(len(p.s1)) {
108-
return nil, fmt.Errorf("cannot precompute table: insufficient SRS points loaded (have %d, need at least %d). Consider increasing loaded SRS points or using precomputed tables",
108+
return nil, fmt.Errorf("cannot precompute table: insufficient SRS points loaded (have %d, need at least %d). "+
109+
"Consider increasing loaded SRS points or using precomputed tables",
109110
len(p.s1), m+1)
110111
}
111112

encoding/kzg/prover/precompute_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ func TestSRSTable_InsufficientSRSPoints_NoPanic(t *testing.T) {
5858

5959
// Initialize with some dummy points (doesn't matter what they are for this test)
6060
var generator bn254.G1Affine
61-
generator.X.SetString("1")
62-
generator.Y.SetString("2")
61+
_, err := generator.X.SetString("1")
62+
require.NoError(t, err)
63+
_, err = generator.Y.SetString("2")
64+
require.NoError(t, err)
6365
for i := range limitedSRS {
6466
limitedSRS[i] = generator
6567
}

0 commit comments

Comments
 (0)