Skip to content

Commit

Permalink
fix response type of explorerTransactionsIDHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Jan 12, 2024
1 parent fcefea8 commit 77bfbfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 77bfbfb

Please sign in to comment.