fix getInputType.
This commit is contained in:
parent
21cae4224c
commit
407782122c
@ -1733,9 +1733,6 @@ Script.prototype.getInputType = function getInputType() {
|
|||||||
Script.getInputType = function getInputType(code, isWitness) {
|
Script.getInputType = function getInputType(code, isWitness) {
|
||||||
var type;
|
var type;
|
||||||
|
|
||||||
if (prev)
|
|
||||||
return prev.getType();
|
|
||||||
|
|
||||||
type = (Script.isPubkeyInput(code) && 'pubkey')
|
type = (Script.isPubkeyInput(code) && 'pubkey')
|
||||||
|| (Script.isPubkeyhashInput(code) && 'pubkeyhash')
|
|| (Script.isPubkeyhashInput(code) && 'pubkeyhash')
|
||||||
|| (Script.isMultisigInput(code, isWitness) && 'multisig')
|
|| (Script.isMultisigInput(code, isWitness) && 'multisig')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user