outpoint: minor.
This commit is contained in:
parent
858081626f
commit
15579a6b21
@ -245,6 +245,7 @@ Outpoint.fromJSON = function fromJSON(json) {
|
||||
Outpoint.prototype.fromTX = function fromTX(tx, index) {
|
||||
assert(tx);
|
||||
assert(typeof index === 'number');
|
||||
assert(index >= 0);
|
||||
this.hash = tx.hash('hex');
|
||||
this.index = index;
|
||||
return this;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user