Skip to content

Commit 4619793

Browse files
authored
Merge pull request #3182 from garden-co/fix/inspector-history-read-key
[Inspector] show invalid transactions if invalid read key
2 parents cddbfdb + 114e4ce commit 4619793

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/fine-webs-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"jazz-tools": patch
3+
---
4+
5+
Show invalid transaction in inspector even if they are not decryptable

packages/jazz-tools/src/inspector/viewer/history-view.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ function getTransactionChanges(
115115
if (tx.isValid === false && tx.tx.privacy === "private") {
116116
const readKey = coValue.core.getReadKey(tx.tx.keyUsed);
117117
if (!readKey) {
118-
throw new Error("Read key not found");
118+
return [
119+
`Unable to decrypt transaction: read key ${tx.tx.keyUsed} not found.`,
120+
];
119121
}
120122

121123
return (

0 commit comments

Comments
 (0)