From d9a61497907b98b554bb72aeef6e2272f759eb58 Mon Sep 17 00:00:00 2001 From: Urvi Date: Wed, 14 Jun 2023 16:21:47 -0700 Subject: [PATCH] Fix link to ledgers endpoint in HAL --- services/horizon/internal/resourceadapter/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/horizon/internal/resourceadapter/root.go b/services/horizon/internal/resourceadapter/root.go index eb2656605d..91a72616ea 100644 --- a/services/horizon/internal/resourceadapter/root.go +++ b/services/horizon/internal/resourceadapter/root.go @@ -46,7 +46,7 @@ func PopulateRoot( dest.Links.AccountTransactions = lb.PagedLink("/accounts/{account_id}/transactions") dest.Links.Assets = lb.Link("/assets{?asset_code,asset_issuer,cursor,limit,order}") dest.Links.Effects = lb.Link("/effects{?cursor,limit,order}") - dest.Links.Ledger = lb.Link("/ledger/{sequence}") + dest.Links.Ledger = lb.Link("/ledgers/{sequence}") dest.Links.Ledgers = lb.Link("/ledgers{?cursor,limit,order}") dest.Links.FeeStats = lb.Link("/fee_stats") dest.Links.Operation = lb.Link("/operations/{id}")