transaction/types: use Satoshi over UInt53

This commit is contained in:
Daniel Cousens 2016-10-07 12:31:02 +11:00 committed by Daniel Cousens
parent ecc6d45a7e
commit 45b0e35264
2 changed files with 2 additions and 2 deletions

View file

@ -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({

View file

@ -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