Apply suggestions from code review

This commit is contained in:
kevaundray 2025-06-17 13:27:24 +02:00 committed by GitHub
parent bfbfa39eb9
commit 283f1a10d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,11 +11,10 @@ func TestNativeGnarkFormatIncompatibility(t *testing.T) {
_, _, g1Gen, _ := bn254.Generators()
wrongSer := g1Gen.Bytes()
// This should fail since the evm serializes points in a different format
var evmG1 G1
_, err := evmG1.Unmarshal(wrongSer[:])
if err == nil {
t.Fatalf("Points serialized using the official bn254 serialization algorithm, should not work with the evm format")
t.Fatalf("points serialized using the official bn254 serialization algorithm, should not work with the evm format")
}
}