@@ -162,31 +162,31 @@ export default function MilestoneDetailPage({ params }: PageProps) {
162162 // Step 3: Perform blockchain transaction with Trustless Work SDK
163163 toast ( 'Please confirm the transaction in your wallet' ) ;
164164
165- const { unsignedTransaction } = await changeMilestoneStatus (
166- {
167- contractId : campaign . escrowAddress ,
168- milestoneIndex : ( milestone . orderIndex ?? milestoneIndex ) . toString ( ) ,
169- newStatus : data . status === 'completed' ? 'completed' : 'in_progress' ,
170- newEvidence : data . submissionNotes , // Use submission notes as evidence description
171- serviceProvider : walletAddress || '' ,
172- } ,
173- 'multi-release'
174- ) ;
175- if ( ! unsignedTransaction ) {
176- throw new Error (
177- 'Unsigned transaction is missing from useChangeMilestoneStatusresponse.'
178- ) ;
179- }
180-
181- const signedXdr = await signTransaction ( {
182- unsignedTransaction,
183- address : walletAddress || '' ,
184- } ) ;
185-
186- const trxsent = await sendTransaction ( signedXdr ) ;
187- if ( trxsent . status === 'SUCCESS' ) {
188- toast . success ( 'Transaction confirmed on blockchain' ) ;
189- }
165+ // const { unsignedTransaction } = await changeMilestoneStatus(
166+ // {
167+ // contractId: campaign.escrowAddress,
168+ // milestoneIndex: (milestone.orderIndex ?? milestoneIndex).toString(),
169+ // newStatus: data.status === 'completed' ? 'completed' : 'in_progress',
170+ // newEvidence: data.submissionNotes, // Use submission notes as evidence description
171+ // serviceProvider: walletAddress || '',
172+ // },
173+ // 'multi-release'
174+ // );
175+ // if (!unsignedTransaction) {
176+ // throw new Error(
177+ // 'Unsigned transaction is missing from useChangeMilestoneStatusresponse.'
178+ // );
179+ // }
180+
181+ // const signedXdr = await signTransaction({
182+ // unsignedTransaction,
183+ // address: walletAddress || '',
184+ // });
185+
186+ // const trxsent = await sendTransaction(signedXdr);
187+ // if (trxsent.status === 'SUCCESS') {
188+ // toast.success('Transaction confirmed on blockchain');
189+ // }
190190
191191 toast ( 'Updating milestone...' ) ;
192192
0 commit comments