Skip to content

Commit 1dedc91

Browse files
authored
Merge pull request #5898 from BitGo/BTC-1984
chore(abstract-lightning): make codec fine for unconfirmed tx
2 parents 04c1cda + 9575370 commit 1dedc91

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)