Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions modules/express/src/typedRoutes/api/v2/walletSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as t from 'io-ts';
import { httpRoute, httpRequest, optional } from '@api-ts/io-ts-http';
import { TransactionRequest as TxRequestResponse, TransactionRequestApiVersion } from '@bitgo/public-types';
import { BitgoExpressError } from '../../schemas/error';
import { Recipient } from './coinSignTx';

/**
* Request path parameters for signing a wallet transaction
Expand All @@ -25,6 +26,8 @@ export const WalletTransactionPrebuild = t.partial({
txInfo: t.any,
/** Wallet ID for the transaction */
walletId: t.string,
/** Transaction request ID for TSS wallets */
txRequestId: t.string,
/** Next contract sequence ID (for ETH) */
nextContractSequenceId: t.number,
/** Whether this is a batch transaction (for ETH) */
Expand All @@ -36,7 +39,7 @@ export const WalletTransactionPrebuild = t.partial({
/** Backup key nonce (for ETH) */
backupKeyNonce: t.any,
/** Recipients of the transaction */
recipients: t.any,
recipients: t.array(Recipient),
});

/**
Expand Down Expand Up @@ -70,7 +73,7 @@ export const WalletSignTxBody = {
/** Sequence ID for transactions */
sequenceId: optional(t.union([t.string, t.number])),
/** Recipients of the transaction */
recipients: optional(t.any),
recipients: optional(t.array(Recipient)),
/** Custodian transaction ID */
custodianTransactionId: optional(t.string),
/** Signing step for MuSig2 */
Expand Down