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

bip174

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bip174 - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "bip174",
"version": "2.0.0",
"version": "2.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/lib/psbt.js",

@@ -27,9 +27,4 @@ 'use strict';

function canAdd(currentData, newData) {
return (
!!currentData &&
!!newData &&
currentData.witnessUtxo === undefined &&
currentData.nonWitnessUtxo === undefined
);
return !!currentData && !!newData && currentData.nonWitnessUtxo === undefined;
}
exports.canAdd = canAdd;

@@ -46,9 +46,4 @@ 'use strict';

function canAdd(currentData, newData) {
return (
!!currentData &&
!!newData &&
currentData.witnessUtxo === undefined &&
currentData.nonWitnessUtxo === undefined
);
return !!currentData && !!newData && currentData.witnessUtxo === undefined;
}
exports.canAdd = canAdd;

@@ -42,3 +42,3 @@ 'use strict';

let result = false;
if (!input.nonWitnessUtxo !== !input.witnessUtxo) {
if (input.nonWitnessUtxo || input.witnessUtxo) {
const needScriptSig = !!input.redeemScript;

@@ -45,0 +45,0 @@ const needWitnessScript = !!input.witnessScript;

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