Skip to content

Commit b6b95b1

Browse files
committed
refactor(express): added request decode
Ticket: WP-6255
1 parent 255a86c commit b6b95b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/express/src/clientRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ async function handleV2SignTxWallet(req: express.Request) {
726726
*/
727727
async function handleV2SignTx(req: ExpressApiRouteRequest<'express.v2.coin.signtx', 'post'>) {
728728
const bitgo = req.bitgo;
729-
const coin = bitgo.coin(req.params.coin);
729+
const coin = bitgo.coin(req.decoded.coin);
730730
try {
731-
return await coin.signTransaction(req.body);
731+
return await coin.signTransaction(req.decoded);
732732
} catch (error) {
733733
console.log('error while signing the transaction ', error);
734734
throw error;

0 commit comments

Comments
 (0)