diff --git a/files/grest/rpc/governance/drep_info.sql b/files/grest/rpc/governance/drep_info.sql index b2fa567e..6b652fe6 100644 --- a/files/grest/rpc/governance/drep_info.sql +++ b/files/grest/rpc/governance/drep_info.sql @@ -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 diff --git a/files/grest/rpc/governance/proposal_list.sql b/files/grest/rpc/governance/proposal_list.sql index 851c1c3a..67c44ce4 100644 --- a/files/grest/rpc/governance/proposal_list.sql +++ b/files/grest/rpc/governance/proposal_list.sql @@ -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