Browse Source

transaction/types: use Satoshi over UInt53

hk-custom-address
Daniel Cousens 8 years ago
committed by Daniel Cousens
parent
commit
45b0e35264
  1. 2
      src/transaction.js
  2. 2
      src/types.js

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

2
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

Loading…
Cancel
Save