diff --git a/frontend/src/services/transaction.js b/frontend/src/services/transaction.js index 835284cb..166d6723 100644 --- a/frontend/src/services/transaction.js +++ b/frontend/src/services/transaction.js @@ -34,11 +34,8 @@ export async function sendTransaction(loopLiquidityData, contractAddress) { console.log(depositTransaction); let result = await starknet.account.execute([approveTransaction, depositTransaction]); - console.log('Resp: '); console.log(result); - notify(ToastWithLink("Transaction successfully sent", `https://starkscan.co/tx/${result.transaction_hash}`, "Transaction ID"), "success") - return { loopTransaction: result.transaction_hash, }; @@ -75,8 +72,6 @@ export async function closePosition(transactionData) { calldata: closePositionParams }, ]); - notify(ToastWithLink("Close position successfully sent", `https://starkscan.co/tx/${result.transaction_hash}`, "Transaction ID"), "success") - } export const handleTransaction = async ( diff --git a/frontend/test/services/transaction.test.js b/frontend/test/services/transaction.test.js index dddd66f8..9a0675f9 100644 --- a/frontend/test/services/transaction.test.js +++ b/frontend/test/services/transaction.test.js @@ -32,7 +32,8 @@ describe('Transaction Functions', () => { connect.mockResolvedValue(mockStarknet); }); - describe('handleTransaction', () => { + describe('handleTransaction', () => { + const mockSetError = jest.fn(); const mockSetTokenAmount = jest.fn(); const mockSetLoading = jest.fn(); const mockSetSuccessful = jest.fn();