Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
fix extraData parsed for other currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
amougel committed Jul 26, 2018
1 parent 9e7c1bc commit 66ab128
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/hw-app-btc/src/Btc.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,8 @@ const tx1 = btc.splitTransaction("01000000014ea60aeac5252c14291d428915bd7ccd1bfc
splitTransaction(
transactionHex: string,
isSegwitSupported: ?boolean = false,
hasTimestamp?: boolean = false
hasTimestamp?: boolean = false,
hasExtraData?: boolean = false
): Transaction {
const inputs = [];
const outputs = [];
Expand Down Expand Up @@ -1028,7 +1029,9 @@ const tx1 = btc.splitTransaction("01000000014ea60aeac5252c14291d428915bd7ccd1bfc
nExpiryHeight = transaction.slice(offset, offset + 4);
offset += 4;
}
extraData = transaction.slice(offset);
if (hasExtraData) {
extraData = transaction.slice(offset);
}
return {
version,
inputs,
Expand Down

0 comments on commit 66ab128

Please sign in to comment.