Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-app-btc

Package Overview
Dependencies
Maintainers
7
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-app-btc - npm Package Compare versions

Comparing version 4.0.0 to 4.2.0-beta.6b217210

flow-typed/npm/@ledgerhq/hw-transport_vx.x.x.js

20

lib/Btc.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc