Skip to content

Commit

Permalink
more taproot support stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kajoseph committed Jul 31, 2024
1 parent 842f3c7 commit 44f8bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/bitcore-wallet-client/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,9 @@ export class API extends EventEmitter {
? Constants.SCRIPT_TYPES.P2WPKH
: Constants.SCRIPT_TYPES.P2WSH;
}
if (wallet.opts.coin === 'btc' && wallet.status.wallet.addressType === 'P2TR') {
client.credentials.addressType = Constants.SCRIPT_TYPES.P2TR;
}
// add client to list
let newClient = _.cloneDeep(client);
// newClient.credentials = settings.credentials;
Expand Down
1 change: 1 addition & 0 deletions packages/bitcore-wallet-client/src/lib/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export class Utils {
break;
case Constants.SCRIPT_TYPES.P2WPKH:
case Constants.SCRIPT_TYPES.P2PKH:
case Constants.SCRIPT_TYPES.P2TR:
t.from(txp.inputs);
break;
}
Expand Down

0 comments on commit 44f8bf4

Please sign in to comment.