Skip to content

Commit 4924a3a

Browse files
authored
Merge pull request #7435 from BitGo/WP-6658-type-validation-wallet-tx-sign-tss
fix(express): walletTxSignTSS type codec
2 parents 85f8ef9 + 15efc22 commit 4924a3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 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 TSS wallet transaction
@@ -38,7 +39,7 @@ export const WalletTxSignTSSTransactionPrebuild = t.partial({
3839
/** Backup key nonce (for ETH) */
3940
backupKeyNonce: t.any,
4041
/** Recipients of the transaction */
41-
recipients: t.any,
42+
recipients: t.array(Recipient),
4243
});
4344

4445
/**
@@ -72,7 +73,7 @@ export const WalletTxSignTSSBody = {
7273
/** Sequence ID for transactions */
7374
sequenceId: optional(t.union([t.string, t.number])),
7475
/** Recipients of the transaction */
75-
recipients: optional(t.any),
76+
recipients: optional(t.array(Recipient)),
7677
/** Custodian transaction ID */
7778
custodianTransactionId: optional(t.string),
7879
/** Signing step for MuSig2 */

0 commit comments

Comments
 (0)