Skip to content

Commit

Permalink
Merge branch 'migrate-test-suites-to-starknetkit' of https://github.c…
Browse files Browse the repository at this point in the history
…om/davedumto/spotnet-ODHack into migrate-test-suites-to-starknetkit
  • Loading branch information
davedumto committed Dec 20, 2024
2 parents 0d29ecd + 936107a commit 3651157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions frontend/src/services/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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 (
Expand Down
3 changes: 2 additions & 1 deletion frontend/test/services/transaction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3651157

Please sign in to comment.