From 77bfbfb83b28297485801fc149208a8f89b186fc Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Fri, 12 Jan 2024 15:39:13 -0500 Subject: [PATCH] fix response type of explorerTransactionsIDHandler --- api/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server.go b/api/server.go index 0b0d2184..7619f607 100644 --- a/api/server.go +++ b/api/server.go @@ -168,11 +168,11 @@ func (s *server) explorerTransactionsIDHandler(jc jape.Context) { if jc.DecodeParam("id", &id) != nil { return } - txn, err := s.e.Transactions([]types.TransactionID{id}) + txns, err := s.e.Transactions([]types.TransactionID{id}) if jc.Check("failed to get transaction", err) != nil { return } - jc.Encode(txn) + jc.Encode(txns[0]) } func (s *server) explorerTransactionsHandler(jc jape.Context) {