Skip to content

Commit aa02f2f

Browse files
Merge pull request #8184 from BitGo/BTC-2650.update-custom-change-wallet-tests
test(abstract-utxo): add integration tests for custom change wallet key
2 parents 0c5f224 + afce442 commit aa02f2f

File tree

3 files changed

+230
-188
lines changed

3 files changed

+230
-188
lines changed

modules/abstract-utxo/src/transaction/fixedScript/explainPsbtWasm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ function toExternalOutput(output: ParsedExternalOutput): Output {
4040

4141
export function explainPsbtWasm(
4242
psbt: fixedScriptWallet.BitGoPsbt,
43-
walletXpubs: Triple<string>,
43+
walletXpubs: Triple<string> | fixedScriptWallet.RootWalletKeys,
4444
params: {
4545
replayProtection: {
4646
checkSignature?: boolean;
4747
publicKeys: Buffer[];
4848
};
49-
customChangeWalletXpubs?: Triple<string>;
49+
customChangeWalletXpubs?: Triple<string> | fixedScriptWallet.RootWalletKeys;
5050
}
5151
): TransactionExplanationWasm {
5252
const parsed = psbt.parseTransactionWithWalletKeys(walletXpubs, { replayProtection: params.replayProtection });

modules/abstract-utxo/src/transaction/fixedScript/parseTransaction.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export async function parseTransaction<TNumber extends bigint | number>(
209209
const explanation: TransactionExplanation = await coin.explainTransaction<TNumber>({
210210
txHex: txPrebuild.txHex,
211211
txInfo: txPrebuild.txInfo,
212+
decodeWith: txPrebuild.decodeWith,
212213
pubs: keychainArray.map((k) => k.pub) as Triple<string>,
213214
customChangeXpubs,
214215
});

0 commit comments

Comments
 (0)