Skip to content

Commit 503b3db

Browse files
author
ci-bot
committed
fix call
1 parent b707e08 commit 503b3db

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class DeployContractHandler extends BaseToolHandler {
126126
)
127127
})
128128
} catch (e) {
129-
return this.createErrorResult(`Deployment error: ${e.message}`);
129+
return this.createErrorResult(`Deployment error: ${e.message || e}`);
130130
}
131131

132132

@@ -149,15 +149,6 @@ export class DeployContractHandler extends BaseToolHandler {
149149
return this.createErrorResult(`Deployment failed: ${error.message}`);
150150
}
151151
}
152-
153-
private async getAccounts(plugin: Plugin): Promise<string[]> {
154-
try {
155-
// TODO: Get accounts from Remix API
156-
return ['0x' + Math.random().toString(16).substr(2, 40)]; // Mock account
157-
} catch (error) {
158-
return [];
159-
}
160-
}
161152
}
162153

163154
/**
@@ -297,10 +288,6 @@ export class CallContractHandler extends BaseToolHandler {
297288
(okCb, cancelCb) => {
298289
// promptCb
299290
},
300-
(error, cancelCb) => {
301-
// promptCb
302-
if (error) reject(error)
303-
},
304291
(error, {txResult, address, returnValue}) => {
305292
if (error) return reject(error)
306293
resolve({txResult, address, returnValue})

0 commit comments

Comments
 (0)