From 5fd10ae15f8c73c7b4e46334ea3ba368bf6c6c3a Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 28 Jan 2025 19:21:17 +0530 Subject: [PATCH] Update comment --- src/app/page.tsx | 4 ++-- src/services/paymentService.ts | 2 +- src/utils/verifyPayment.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index fe8278c..65ae898 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -56,9 +56,9 @@ const Page: React.FC = (): React.ReactElement => { connected: false, publicKey: null, type: null - }); + }) } - }; + } const handleFluxGeneration = (modelId: string, cost: BN) => { return async (prompt: string): Promise => { diff --git a/src/services/paymentService.ts b/src/services/paymentService.ts index 6660895..501e2b8 100644 --- a/src/services/paymentService.ts +++ b/src/services/paymentService.ts @@ -161,7 +161,7 @@ export async function processMTMPayment( transaction.feePayer = senderPublicKey console.log('Sending transaction...') - const { signature } = await wallet.signAndSendTransaction(transaction); + const { signature } = await wallet.signAndSendTransaction(transaction) console.log('Transaction sent:', signature) const confirmation = await connection.confirmTransaction({ diff --git a/src/utils/verifyPayment.ts b/src/utils/verifyPayment.ts index c2dd89a..2998edd 100644 --- a/src/utils/verifyPayment.ts +++ b/src/utils/verifyPayment.ts @@ -88,7 +88,7 @@ export async function verifyPayment( return true; } console.log('Transaction amount is not within the expected range.'); - // TODO: Handle spillage being greater than 10% + // TODO: Handle slippage being greater than 10% return false; } catch (error) { console.error('Verification error:', error);