From f710560fe4719d9e120e70907d53ce3af6885c8d Mon Sep 17 00:00:00 2001 From: otherview Date: Tue, 10 Mar 2026 14:33:57 +0000 Subject: [PATCH] Nit: Fix the gnark g1 receivers --- crypto/bn256/gnark/g1.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/bn256/gnark/g1.go b/crypto/bn256/gnark/g1.go index bb758c3580..9db63401bf 100644 --- a/crypto/bn256/gnark/g1.go +++ b/crypto/bn256/gnark/g1.go @@ -72,13 +72,13 @@ func (g *G1) Unmarshal(buf []byte) (int, error) { // The output is in EVM format: 64 bytes total. // [32-byte x coordinate][32-byte y coordinate] // where each coordinate is a big-endian integer padded to 32 bytes. -func (p *G1) Marshal() []byte { +func (g *G1) Marshal() []byte { output := make([]byte, 64) - xBytes := p.inner.X.Bytes() + xBytes := g.inner.X.Bytes() copy(output[:32], xBytes[:]) - yBytes := p.inner.Y.Bytes() + yBytes := g.inner.Y.Bytes() copy(output[32:64], yBytes[:]) return output