@ledgerhq/hw-app-btc
Advanced tools
Comparing version
@@ -476,7 +476,8 @@ "use strict"; | ||
var sigHashType = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : SIGHASH_ALL; | ||
var segwit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false; | ||
var _this5 = this; | ||
var segwit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false; | ||
var initialTimestamp = arguments[7]; | ||
var forkid = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : ""; | ||
@@ -553,3 +554,3 @@ var hasTimestamp = initialTimestamp !== undefined; | ||
}).then(function () { | ||
return (0, _utils.doIf)(segwit, function () { | ||
return (0, _utils.doIf)(segwit || forkid !== "", function () { | ||
return ( | ||
@@ -578,4 +579,4 @@ // Do the first run with all inputs | ||
} | ||
return _this5.startUntrustedHashTransactionInput(!segwit && firstRun, pseudoTX, pseudoTrustedInputs, segwit).then(function () { | ||
return (0, _utils.doIf)(!segwit, function () { | ||
return _this5.startUntrustedHashTransactionInput(!segwit && forkid === "" && firstRun, pseudoTX, pseudoTrustedInputs, segwit).then(function () { | ||
return (0, _utils.doIf)(!segwit && forkid === "", function () { | ||
return (0, _utils.doIf)(!resuming && typeof changePath != "undefined", function () { | ||
@@ -582,0 +583,0 @@ return _this5.provideOutputFullChangePath(changePath); |
{ | ||
"name": "@ledgerhq/hw-app-btc", | ||
"version": "4.11.1", | ||
"version": "4.12.0-beta.fd04ab6f", | ||
"description": "Ledger Hardware Wallet Bitcoin Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.7.3", | ||
"@ledgerhq/hw-transport": "^4.12.0-beta.fd04ab6f", | ||
"create-hash": "^1.1.3" | ||
@@ -31,0 +31,0 @@ }, |
@@ -501,3 +501,4 @@ //@flow | ||
segwit?: boolean = false, | ||
initialTimestamp?: number | ||
initialTimestamp?: number, | ||
forkid?: ""| "abc" | "gold" = "" | ||
) { | ||
@@ -594,3 +595,3 @@ const hasTimestamp = initialTimestamp !== undefined; | ||
.then(() => | ||
doIf(segwit, () => | ||
doIf(segwit || forkid !== "", () => | ||
// Do the first run with all inputs | ||
@@ -630,3 +631,3 @@ this.startUntrustedHashTransactionInput( | ||
return this.startUntrustedHashTransactionInput( | ||
!segwit && firstRun, | ||
(!segwit && forkid === "" ) && firstRun, | ||
pseudoTX, | ||
@@ -637,3 +638,3 @@ pseudoTrustedInputs, | ||
.then(() => | ||
doIf(!segwit, () => | ||
doIf((!segwit && forkid === "" ), () => | ||
doIf(!resuming && typeof changePath != "undefined", () => { | ||
@@ -640,0 +641,0 @@ return this.provideOutputFullChangePath(changePath); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
197547
0.29%2287
0.09%1
Infinity%