From 65ee3e0937830a5284ea42eeaeb5c6e3e61afd63 Mon Sep 17 00:00:00 2001 From: Thomas Piellard Date: Wed, 5 Jul 2023 15:49:28 +0200 Subject: [PATCH] fix: fixed #761 --- backend/plonk/bn254/solidity.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/plonk/bn254/solidity.go b/backend/plonk/bn254/solidity.go index d474058b64..03efa6a70c 100644 --- a/backend/plonk/bn254/solidity.go +++ b/backend/plonk/bn254/solidity.go @@ -1227,8 +1227,10 @@ func (proof *Proof) MarshalSolidity() []byte { // uint256[] selector_commit_api_at_zeta; // uint256[] wire_committed_commitments; if len(proof.Bsb22Commitments) > 0 { - tmp32 = proof.BatchedProof.ClaimedValues[7].Bytes() - res = append(res, tmp32[:]...) + for i := 0; i < len(proof.Bsb22Commitments); i++ { + tmp32 = proof.BatchedProof.ClaimedValues[7+i].Bytes() + res = append(res, tmp32[:]...) + } for _, bc := range proof.Bsb22Commitments { tmp64 = bc.RawBytes()