diff --git a/src/transaction.js b/src/transaction.js index cbd316c..676a53c 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -117,7 +117,7 @@ Transaction.prototype.addInput = function (hash, index, sequence, scriptSig) { } Transaction.prototype.addOutput = function (scriptPubKey, value) { - typeforce(types.tuple(types.Buffer, types.UInt53), arguments) + typeforce(types.tuple(types.Buffer, types.Satoshi), arguments) // Add the output and return the output's index return (this.outs.push({ diff --git a/src/types.js b/src/types.js index 007d3b2..1dbdcc5 100644 --- a/src/types.js +++ b/src/types.js @@ -31,7 +31,7 @@ var Network = typeforce.compile({ pubKeyHash: typeforce.UInt8, scriptHash: typeforce.UInt8, wif: typeforce.UInt8, - dustThreshold: typeforce.UInt53 + dustThreshold: Satoshi }) // extend typeforce types with ours