From 7f402a375c406fc5b0a462bc5abf14a9138f3ca3 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Tue, 18 Oct 2022 09:54:40 +0530 Subject: [PATCH] Update lib_btc.js --- lib_btc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib_btc.js b/lib_btc.js index b26255e..65bb476 100644 --- a/lib_btc.js +++ b/lib_btc.js @@ -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;