From 45b0e3526406e9753dc6dd24b46e2502437ec152 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 7 Oct 2016 12:31:02 +1100 Subject: [PATCH] transaction/types: use Satoshi over UInt53 --- src/transaction.js | 2 +- src/types.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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