assert.
This commit is contained in:
parent
98774d0c0b
commit
8e65b43d40
@ -189,6 +189,8 @@ Address.prototype.getProgram = function getProgram() {
|
|||||||
} else if (this.type === 'multisig') {
|
} else if (this.type === 'multisig') {
|
||||||
hash = Address.sha256(this.getScript().encode());
|
hash = Address.sha256(this.getScript().encode());
|
||||||
program = bcoin.script.createWitnessProgram(0, hash);
|
program = bcoin.script.createWitnessProgram(0, hash);
|
||||||
|
} else {
|
||||||
|
assert(false, 'Unknown address type.');
|
||||||
}
|
}
|
||||||
this._program = program;
|
this._program = program;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user