Skip to content

Commit

Permalink
[FIX] support litecoin bech32 format
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbazan7 committed Jul 14, 2021
1 parent d175f22 commit 0b653f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bitcore-wallet-service/src/lib/model/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0b653f7

Please sign in to comment.