Update lib_btc.js

This commit is contained in:
tripathyr 2022-10-18 09:54:40 +05:30 committed by GitHub
parent cb21c7f84b
commit 7f402a375c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -635,6 +635,9 @@
} else if (o.version == coinjs.multisig) { // multisig address
o.type = 'multisig';
} else if (o.version == coinjs.multisigBech32) { // multisig address
o.type = 'multisigBech32';
} else if (o.version == coinjs.priv) { // wifkey
o.type = 'wifkey';
@ -2835,7 +2838,7 @@
if (!addr)
return undefined;
let type = coinjs.addressDecode(addr).type;
if (["standard", "multisig", "bech32"].includes(type))
if (["standard", "multisig", "bech32", "multisigBech32"].includes(type))
return type;
else
return false;