Skip to content

Commit

Permalink
Merge pull request #4171 from BitGo/BTC-741-fix-unspent-sending
Browse files Browse the repository at this point in the history
fix(abstract-utxo): add changeAddress to change params
  • Loading branch information
davidkaplanbitgo authored Dec 26, 2023
2 parents 44bb681 + 3df744d commit 007af71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/abstract-utxo/src/abstractUtxoCoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1475,8 +1475,9 @@ export abstract class AbstractUtxoCoin extends BaseCoin {

// if the addressType is not specified, we need to default to p2trMusig2 for testnet hot wallets for staged rollout of p2trMusig2
if (
buildParams.addressType === undefined &&
buildParams.addressType === undefined && // addressType is deprecated and replaced by `changeAddress`
buildParams.changeAddressType === undefined &&
buildParams.changeAddress === undefined &&
buildParams.wallet.type() === 'hot' &&
this.network === utxolib.networks.testnet
) {
Expand Down

0 comments on commit 007af71

Please sign in to comment.