Skip to content

Commit b3b85a3

Browse files
committed
minor
1 parent 424982d commit b3b85a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/remix-ai-core/src/remix-mcp-server/handlers/DeploymentHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)