fix getInputType.

This commit is contained in:
Christopher Jeffrey 2016-04-08 15:32:28 -07:00
parent 21cae4224c
commit 407782122c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1733,9 +1733,6 @@ Script.prototype.getInputType = function getInputType() {
Script.getInputType = function getInputType(code, isWitness) {
var type;
if (prev)
return prev.getType();
type = (Script.isPubkeyInput(code) && 'pubkey')
|| (Script.isPubkeyhashInput(code) && 'pubkeyhash')
|| (Script.isMultisigInput(code, isWitness) && 'multisig')