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 {
126
126
)
127
127
} )
128
128
} catch ( e ) {
129
- return this . createErrorResult ( `Deployment error: ${ e . message } ` ) ;
129
+ return this . createErrorResult ( `Deployment error: ${ e . message || e } ` ) ;
130
130
}
131
131
132
132
@@ -149,15 +149,6 @@ export class DeployContractHandler extends BaseToolHandler {
149
149
return this . createErrorResult ( `Deployment failed: ${ error . message } ` ) ;
150
150
}
151
151
}
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
- }
161
152
}
162
153
163
154
/**
@@ -297,10 +288,6 @@ export class CallContractHandler extends BaseToolHandler {
297
288
( okCb , cancelCb ) => {
298
289
// promptCb
299
290
} ,
300
- ( error , cancelCb ) => {
301
- // promptCb
302
- if ( error ) reject ( error )
303
- } ,
304
291
( error , { txResult, address, returnValue} ) => {
305
292
if ( error ) return reject ( error )
306
293
resolve ( { txResult, address, returnValue} )
You can’t perform that action at this time.
0 commit comments