File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
libs/remix-ai-core/src/remix-mcp-server/handlers Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff 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} )
You can’t perform that action at this time.
0 commit comments