From 62932b09cbad608870d716fc9ba361d007d64ac7 Mon Sep 17 00:00:00 2001 From: Tim Man Date: Wed, 20 Dec 2023 19:49:06 +0800 Subject: [PATCH] fix: minor cleanup --- src/app/screens/transactionRequest/helper.ts | 3 ++- src/app/screens/transactionRequest/index.tsx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/screens/transactionRequest/helper.ts b/src/app/screens/transactionRequest/helper.ts index 93b5962a2..b53bb27b5 100644 --- a/src/app/screens/transactionRequest/helper.ts +++ b/src/app/screens/transactionRequest/helper.ts @@ -4,6 +4,7 @@ import { generateUnsignedStxTokenTransferTransaction, StacksNetwork, StacksTransaction, + StxPendingTxData, } from '@secretkeylabs/xverse-core'; import { TransactionPayload } from '@stacks/connect'; @@ -30,7 +31,7 @@ export async function getTokenTransferRequest( stxPublicKey: string, feeMultipliers: FeesMultipliers, network: StacksNetwork, - stxPendingTransactions, + stxPendingTransactions: StxPendingTxData, ) { const unsignedSendStxTx: StacksTransaction = await generateUnsignedStxTokenTransferTransaction( recipient, diff --git a/src/app/screens/transactionRequest/index.tsx b/src/app/screens/transactionRequest/index.tsx index bc08c70e6..b60c67fbe 100644 --- a/src/app/screens/transactionRequest/index.tsx +++ b/src/app/screens/transactionRequest/index.tsx @@ -14,6 +14,7 @@ import { import { StacksTransaction } from '@stacks/transactions'; import { getNetworkType, isHardwareAccount } from '@utils/helper'; import { useEffect, useState } from 'react'; +import toast from 'react-hot-toast'; import { useNavigate } from 'react-router-dom'; import { MoonLoader } from 'react-spinners'; import styled from 'styled-components'; @@ -116,7 +117,8 @@ function TransactionRequest() { await handleContractDeployRequest(); } } catch (e: unknown) { - console.log(e); + console.error(e); // eslint-disable-line + toast.error('Unexpected error creating transaction'); } };