diff --git a/src/transaction.js b/src/transaction.js index 80393b9..72e72f6 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -85,6 +85,7 @@ Transaction.prototype.addOutput = function(scriptPubKey, value) { } assert(scriptPubKey instanceof Script, 'Expected Address or Script, got ' + scriptPubKey) + assert.equal(typeof value, 'number', 'Expected number value, got ' + value) return (this.outs.push({ script: scriptPubKey,