Skip to content

Commit 8d3502b

Browse files
committed
fix(3911): ensure exact match for proposal ID to prevent multiple results for txHash#index
1 parent 67460bc commit 8d3502b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

govtool/backend/sql/list-proposals.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ WHERE
346346
off_chain_vote_gov_action_data.abstract ILIKE ? OR
347347
off_chain_vote_gov_action_data.motivation ILIKE ? OR
348348
off_chain_vote_gov_action_data.rationale ILIKE ? OR
349-
concat(encode(creator_tx.hash, 'hex'), '#', gov_action_proposal.index) ILIKE ?)
349+
concat(encode(creator_tx.hash, 'hex'), '#', gov_action_proposal.index) = ?)
350350
GROUP BY
351351
gov_action_proposal.id,
352352
creator_tx.hash,

0 commit comments

Comments
 (0)