coinselect
Advanced tools
Comparing version 3.1.3 to 3.1.4
{ | ||
"name": "coinselect", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "A transaction input selection module for bitcoin.", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"nyc": "^6.4.0", | ||
"nyc": "^8.3.2", | ||
"standard": "*", | ||
@@ -48,0 +48,0 @@ "tape": "^4.5.1" |
10
split.js
@@ -27,3 +27,11 @@ var utils = require('./utils') | ||
outputs = outputs.map(function (x) { | ||
return x.value !== undefined ? x : { value: splitValue } | ||
if (x.value !== undefined) return x | ||
// not user defined, but still copy over any non-value fields | ||
var y = { | ||
value: splitValue | ||
} | ||
for (var k in x) y[k] = x[k] | ||
return y | ||
}) | ||
@@ -30,0 +38,0 @@ |
10393
202