From 2875c8106dcddac24886180ebff35a1985a80613 Mon Sep 17 00:00:00 2001 From: sandhilt <6170125+sandhilt@users.noreply.github.com> Date: Tue, 21 Jan 2025 20:21:10 -0300 Subject: [PATCH] fix: fix proof index --- pkg/convenience/repository/voucher_repository.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/convenience/repository/voucher_repository.go b/pkg/convenience/repository/voucher_repository.go index 8121e4f..b64a3c2 100644 --- a/pkg/convenience/repository/voucher_repository.go +++ b/pkg/convenience/repository/voucher_repository.go @@ -116,14 +116,12 @@ func (c *VoucherRepository) SetProof( ) error { updateVoucher := `UPDATE vouchers SET output_hashes_siblings = $1, - proof_output_index = $2 - WHERE app_contract = $3 and output_index = $4` + WHERE app_contract = $2 and output_index = $3` exec := DBExecutor{&c.Db} res, err := exec.ExecContext( ctx, updateVoucher, voucher.OutputHashesSiblings, - voucher.ProofOutputIndex, voucher.AppContract.Hex(), voucher.OutputIndex, )