File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
libs/remix-ai-core/src/remix-mcp-server/handlers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ export class SendTransactionHandler extends BaseToolHandler {
422422      // Wait for the transaction to be mined 
423423      const  receipt  =  await  tx . wait ( ) 
424424      // TODO: Send a real transaction via Remix Run Tab API 
425-       const  mockResult  =  { 
425+       const  transactionResult  =  { 
426426        success : true , 
427427        transactionHash : receipt . hash , 
428428        from : args . account , 
@@ -432,7 +432,7 @@ export class SendTransactionHandler extends BaseToolHandler {
432432        blockNumber : receipt . blockNumber 
433433      } ; 
434434
435-       return  this . createSuccessResult ( mockResult ) ; 
435+       return  this . createSuccessResult ( transactionResult ) ; 
436436
437437    }  catch  ( error )  { 
438438      console . log ( error ) 
@@ -466,7 +466,7 @@ export class GetDeployedContractsHandler extends BaseToolHandler {
466466      const  deployedContracts  =  await  plugin . call ( 'udapp' ,  'getAllDeployedInstances' ) 
467467      return  this . createSuccessResult ( { 
468468        success : true , 
469-         contracts : deployedContracts , 
469+         contracts : Object . fromEntries ( deployedContracts ?. map ( c   =>   [ c . name ,   c . address ] ) )   ||   [ ] , 
470470        count : deployedContracts . length 
471471      } ) ; 
472472
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments