mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Apply suggestions from code review
This commit is contained in:
parent
bfbfa39eb9
commit
283f1a10d1
1 changed files with 1 additions and 2 deletions
|
|
@ -11,11 +11,10 @@ func TestNativeGnarkFormatIncompatibility(t *testing.T) {
|
||||||
_, _, g1Gen, _ := bn254.Generators()
|
_, _, g1Gen, _ := bn254.Generators()
|
||||||
wrongSer := g1Gen.Bytes()
|
wrongSer := g1Gen.Bytes()
|
||||||
|
|
||||||
// This should fail since the evm serializes points in a different format
|
|
||||||
var evmG1 G1
|
var evmG1 G1
|
||||||
_, err := evmG1.Unmarshal(wrongSer[:])
|
_, err := evmG1.Unmarshal(wrongSer[:])
|
||||||
if err == nil {
|
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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue