Skip to content

Commit 9575370

Browse files
chore(abstract-lightning): make codec fine for unconfirmed tx
BTC-1984 TICKET: BTC-1984
1 parent 1b5e89c commit 9575370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/abstract-lightning/src/codecs/api/transaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export const Transaction = t.intersection(
5252
id: t.string,
5353
normalizedTxHash: t.string,
5454
blockHeight: t.number,
55-
blockHash: t.string,
56-
blockPosition: t.number,
5755
inputIds: t.array(t.string),
5856
entries: t.array(TransactionEntry),
5957
inputs: t.array(Output),
@@ -66,6 +64,8 @@ export const Transaction = t.intersection(
6664
confirmations: t.number,
6765
}),
6866
t.partial({
67+
blockHash: t.string,
68+
blockPosition: t.number,
6969
label: t.string,
7070
}),
7171
],

0 commit comments

Comments
 (0)