From e464419a4df67655445c7fa0f47f6923ed2d27a8 Mon Sep 17 00:00:00 2001 From: Anastasios Date: Mon, 11 Nov 2024 19:51:55 +0400 Subject: [PATCH] fix: multisig transfer send amount, closes #5941 --- .../messaging/rpc-methods/sign-stacks-transaction.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/background/messaging/rpc-methods/sign-stacks-transaction.ts b/src/background/messaging/rpc-methods/sign-stacks-transaction.ts index c408382a80d..11a2d9d2542 100644 --- a/src/background/messaging/rpc-methods/sign-stacks-transaction.ts +++ b/src/background/messaging/rpc-methods/sign-stacks-transaction.ts @@ -15,10 +15,8 @@ import { serializeCV, serializePostCondition, } from '@stacks/transactions'; -import BigNumber from 'bignumber.js'; import { createUnsecuredToken } from 'jsontokens'; -import { STX_DECIMALS } from '@leather.io/constants'; import { isDefined, isUndefined } from '@leather.io/utils'; import { RouteUrls } from '@shared/route-urls'; @@ -68,10 +66,7 @@ const transactionPayloadToTransactionRequest = ( case PayloadType.TokenTransfer: transactionRequest.txType = TransactionTypes.STXTransfer; transactionRequest.recipient = cvToValue(stacksTransaction.payload.recipient, true); - transactionRequest.amount = new BigNumber(Number(stacksTransaction.payload.amount)) - .shiftedBy(-STX_DECIMALS) - .toNumber() - .toLocaleString('en-US', { maximumFractionDigits: STX_DECIMALS }); + transactionRequest.amount = stacksTransaction.payload.amount.toString(); transactionRequest.memo = cleanMemoString(stacksTransaction.payload.memo.content); break; case PayloadType.ContractCall: