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 {
422
422
// Wait for the transaction to be mined
423
423
const receipt = await tx . wait ( )
424
424
// TODO: Send a real transaction via Remix Run Tab API
425
- const mockResult = {
425
+ const transactionResult = {
426
426
success : true ,
427
427
transactionHash : receipt . hash ,
428
428
from : args . account ,
@@ -432,7 +432,7 @@ export class SendTransactionHandler extends BaseToolHandler {
432
432
blockNumber : receipt . blockNumber
433
433
} ;
434
434
435
- return this . createSuccessResult ( mockResult ) ;
435
+ return this . createSuccessResult ( transactionResult ) ;
436
436
437
437
} catch ( error ) {
438
438
console . log ( error )
@@ -466,7 +466,7 @@ export class GetDeployedContractsHandler extends BaseToolHandler {
466
466
const deployedContracts = await plugin . call ( 'udapp' , 'getAllDeployedInstances' )
467
467
return this . createSuccessResult ( {
468
468
success : true ,
469
- contracts : deployedContracts ,
469
+ contracts : Object . fromEntries ( deployedContracts ?. map ( c => [ c . name , c . address ] ) ) || [ ] ,
470
470
count : deployedContracts . length
471
471
} ) ;
472
472
You can’t perform that action at this time.
0 commit comments