transaction/types: use Satoshi over UInt53
This commit is contained in:
parent
ecc6d45a7e
commit
45b0e35264
2 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
|
@ -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…
Reference in a new issue