From 0b653f7b5089e3a918eff90ce00f1595f7e4f631 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 14 Jul 2021 15:36:52 -0300 Subject: [PATCH] [FIX] support litecoin bech32 format --- packages/bitcore-wallet-service/src/lib/model/address.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bitcore-wallet-service/src/lib/model/address.ts b/packages/bitcore-wallet-service/src/lib/model/address.ts index 2c915bc7027..856173b36ec 100644 --- a/packages/bitcore-wallet-service/src/lib/model/address.ts +++ b/packages/bitcore-wallet-service/src/lib/model/address.ts @@ -112,7 +112,7 @@ export class Address { bitcoreAddress = Address.Bitcore[coin].Address.createMultisig(publicKeys, m, network); break; case Constants.SCRIPT_TYPES.P2WPKH: - bitcoreAddress = Address.Bitcore.btc.Address.fromPublicKey(publicKeys[0], network, 'witnesspubkeyhash'); + bitcoreAddress = Address.Bitcore[coin].Address.fromPublicKey(publicKeys[0], network, 'witnesspubkeyhash'); break; case Constants.SCRIPT_TYPES.P2PKH: $.checkState(