File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -710,8 +710,8 @@ async function handleV2AcceptWalletShare(req: express.Request) {
710710 */
711711async function handleV2SignTxWallet ( req : ExpressApiRouteRequest < 'express.v2.wallet.signtx' , 'post' > ) {
712712 const bitgo = req . bitgo ;
713- const coin = bitgo . coin ( req . params . coin ) ;
714- const wallet = await coin . wallets ( ) . get ( { id : req . params . id } ) ;
713+ const coin = bitgo . coin ( req . decoded . coin ) ;
714+ const wallet = await coin . wallets ( ) . get ( { id : req . decoded . id } ) ;
715715 try {
716716 return await wallet . signTransaction ( createSendParams ( req ) ) ;
717717 } catch ( error ) {
Original file line number Diff line number Diff line change 11import * as t from 'io-ts' ;
22import { httpRoute , httpRequest , optional } from '@api-ts/io-ts-http' ;
3- import { TransactionRequest as TxRequestResponse } from '@bitgo/public-types' ;
3+ import { TransactionRequest as TxRequestResponse , TransactionRequestApiVersion } from '@bitgo/public-types' ;
44import { BitgoExpressError } from '../../schemas/error' ;
55
66/**
@@ -58,7 +58,7 @@ export const WalletSignTxBody = {
5858 /** Wallet passphrase for TSS wallets */
5959 walletPassphrase : optional ( t . string ) ,
6060 /** API version: 'lite' or 'full' */
61- apiVersion : optional ( t . union ( [ t . literal ( 'lite' ) , t . literal ( 'full' ) ] ) ) ,
61+ apiVersion : optional ( TransactionRequestApiVersion ) ,
6262 /** Multisig type version */
6363 multisigTypeVersion : optional ( t . literal ( 'MPCv2' ) ) ,
6464 /** Gas limit for ETH transactions */
You can’t perform that action at this time.
0 commit comments