@ledgerhq/hw-app-btc
Advanced tools
Comparing version 4.0.0 to 4.2.0-beta.6b217210
@@ -510,14 +510,14 @@ "use strict"; | ||
} | ||
}).then(function () { | ||
for (var i = 0; i < inputs.length; i++) { | ||
var _sequence = Buffer.alloc(4); | ||
_sequence.writeUInt32LE(inputs[i].length >= 4 && typeof inputs[i][3] === "number" ? inputs[i][3] : DEFAULT_SEQUENCE, 0); | ||
targetTransaction.inputs.push({ | ||
script: nullScript, | ||
prevout: nullPrevout, | ||
sequence: _sequence | ||
}); | ||
} | ||
}); | ||
}).then(function () { | ||
for (var i = 0; i < inputs.length; i++) { | ||
var _sequence = Buffer.alloc(4); | ||
_sequence.writeUInt32LE(inputs[i].length >= 4 && typeof inputs[i][3] === "number" ? inputs[i][3] : DEFAULT_SEQUENCE, 0); | ||
targetTransaction.inputs.push({ | ||
script: nullScript, | ||
prevout: nullPrevout, | ||
sequence: _sequence | ||
}); | ||
} | ||
}).then(function () { | ||
return (0, _utils.doIf)(!resuming, function () { | ||
@@ -524,0 +524,0 @@ return ( |
{ | ||
"name": "@ledgerhq/hw-app-btc", | ||
"version": "4.0.0", | ||
"version": "4.2.0-beta.6b217210", | ||
"description": "Ledger Hardware Wallet Bitcoin Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.0.0", | ||
"@ledgerhq/hw-transport": "^4.2.0-beta.6b217210", | ||
"create-hash": "^1.1.3" | ||
@@ -31,0 +31,0 @@ }, |
@@ -516,27 +516,26 @@ //@flow | ||
}) | ||
) | ||
.then(() => { | ||
const { outputs } = input[0]; | ||
const index = input[1]; | ||
if (outputs && index <= outputs.length - 1) { | ||
regularOutputs.push(outputs[index]); | ||
} | ||
}) | ||
.then(() => { | ||
for (let i = 0; i < inputs.length; i++) { | ||
let sequence = Buffer.alloc(4); | ||
sequence.writeUInt32LE( | ||
inputs[i].length >= 4 && typeof inputs[i][3] === "number" | ||
? inputs[i][3] | ||
: DEFAULT_SEQUENCE, | ||
0 | ||
); | ||
targetTransaction.inputs.push({ | ||
script: nullScript, | ||
prevout: nullPrevout, | ||
sequence | ||
}); | ||
} | ||
}); | ||
).then(() => { | ||
const { outputs } = input[0]; | ||
const index = input[1]; | ||
if (outputs && index <= outputs.length - 1) { | ||
regularOutputs.push(outputs[index]); | ||
} | ||
}); | ||
}) | ||
.then(() => { | ||
for (let i = 0; i < inputs.length; i++) { | ||
let sequence = Buffer.alloc(4); | ||
sequence.writeUInt32LE( | ||
inputs[i].length >= 4 && typeof inputs[i][3] === "number" | ||
? inputs[i][3] | ||
: DEFAULT_SEQUENCE, | ||
0 | ||
); | ||
targetTransaction.inputs.push({ | ||
script: nullScript, | ||
prevout: nullPrevout, | ||
sequence | ||
}); | ||
} | ||
}) | ||
.then(() => | ||
@@ -543,0 +542,0 @@ doIf(!resuming, () => |
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
192737
15
2247
1