Skip to content

Commit

Permalink
Couple of small syntax fixes to errors discovered during environment …
Browse files Browse the repository at this point in the history
…refresh
  • Loading branch information
gregbgithub committed Aug 6, 2024
1 parent b7a7d5f commit 746b489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/grest/rpc/governance/drep_info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ BEGIN
(CASE WHEN COALESCE(dr.deposit, 0) >= 0 THEN ds.expires_epoch_no ELSE NULL END) AS expires_epoch_no,
COALESCE(dd.amount, 0)::text AS amount,
va.url,
ENCODE(va.data_hash, 'hex') AS hash,
ENCODE(va.data_hash, 'hex') AS hash
FROM public.drep_hash AS dh
LEFT JOIN public.drep_registration AS dr ON dh.id = dr.drep_hash_id
LEFT JOIN public.voting_anchor AS va ON dr.voting_anchor_id = va.id
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/governance/proposal_list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ AS $$
LEFT JOIN public.voting_anchor AS va ON gap.voting_anchor_id = va.id
LEFT JOIN public.off_chain_vote_data AS ocvd ON va.id = ocvd.voting_anchor_id
ORDER BY
block_time DESC;
b.time DESC;
$$;

COMMENT ON FUNCTION grest.proposal_list IS 'Get a raw listing of all governance proposals'; --noqa: LT01

0 comments on commit 746b489

Please sign in to comment.