Skip to content

Commit

Permalink
fix(explorer): fix one-off transaction confirmation count
Browse files Browse the repository at this point in the history
  • Loading branch information
telestrial committed Feb 26, 2025
1 parent a9f2ced commit cb19702
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-candles-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

Corrected transaction confirmation count.
3 changes: 2 additions & 1 deletion apps/explorer/app/tx/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export default async function Page({ params }) {
transactionHeaderData={{
id: stripPrefix(transaction.id),
blockHeight: transactionChainIndices[0].height,
confirmations: currentTip.height - transactionChainIndices[0].height,
confirmations:
currentTip.height - transactionChainIndices[0].height + 1,
timestamp: parentBlock.timestamp,
}}
/>
Expand Down

0 comments on commit cb19702

Please sign in to comment.