Skip to content

Commit

Permalink
fix: fixed panic
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasPiellard committed Sep 18, 2024
1 parent 337700a commit ec436b4
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 10 deletions.
6 changes: 5 additions & 1 deletion ecc/bls12-377/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bls12-378/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bls12-381/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bls24-315/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bls24-317/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bn254/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bw6-633/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bw6-756/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ecc/bw6-761/shplonk/shplonk_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion internal/generator/shplonk/template/shplonk.test.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ var bAlpha *big.Int
func init() {
const srsSize = 230
bAlpha = new(big.Int).SetInt64(42) // randomise ?
testSrs, _ = kzg.NewSRS(ecc.NextPowerOfTwo(srsSize), bAlpha)
var err error
testSrs, err = kzg.NewSRS(ecc.NextPowerOfTwo(srsSize), bAlpha)
if err!=nil {
panic(err)
}
}

func TestOpening(t *testing.T) {
Expand Down

0 comments on commit ec436b4

Please sign in to comment.