Skip to content

Commit

Permalink
fix: fix proof index
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhilt committed Jan 21, 2025
1 parent 743bf6d commit 2875c81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/convenience/repository/voucher_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 2875c81

Please sign in to comment.