Skip to content

Commit 2dc3b77

Browse files
committed
fix(express): walletSignTx type codec
Ticket: WP-6658
1 parent 4924a3a commit 2dc3b77

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/express/src/typedRoutes/api/v2/walletSignTx.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as t from 'io-ts';
22
import { httpRoute, httpRequest, optional } from '@api-ts/io-ts-http';
33
import { TransactionRequest as TxRequestResponse, TransactionRequestApiVersion } from '@bitgo/public-types';
44
import { BitgoExpressError } from '../../schemas/error';
5+
import { Recipient } from './coinSignTx';
56

67
/**
78
* Request path parameters for signing a wallet transaction
@@ -25,6 +26,8 @@ export const WalletTransactionPrebuild = t.partial({
2526
txInfo: t.any,
2627
/** Wallet ID for the transaction */
2728
walletId: t.string,
29+
/** Transaction request ID for TSS wallets */
30+
txRequestId: t.string,
2831
/** Next contract sequence ID (for ETH) */
2932
nextContractSequenceId: t.number,
3033
/** Whether this is a batch transaction (for ETH) */
@@ -36,7 +39,7 @@ export const WalletTransactionPrebuild = t.partial({
3639
/** Backup key nonce (for ETH) */
3740
backupKeyNonce: t.any,
3841
/** Recipients of the transaction */
39-
recipients: t.any,
42+
recipients: t.array(Recipient),
4043
});
4144

4245
/**
@@ -70,7 +73,7 @@ export const WalletSignTxBody = {
7073
/** Sequence ID for transactions */
7174
sequenceId: optional(t.union([t.string, t.number])),
7275
/** Recipients of the transaction */
73-
recipients: optional(t.any),
76+
recipients: optional(t.array(Recipient)),
7477
/** Custodian transaction ID */
7578
custodianTransactionId: optional(t.string),
7679
/** Signing step for MuSig2 */

0 commit comments

Comments
 (0)