From d183488a6ec9c435257e95bc9cdf82ddeea46073 Mon Sep 17 00:00:00 2001 From: CombatPug <pe.ladar@icloud.com> Date: Fri, 26 Jul 2024 14:39:03 +0200 Subject: [PATCH] fix: deprecate eth_compileSerpent, eth_compileLLL and eth_compileSolidity --- src/api.ts | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/api.ts b/src/api.ts index ec1363a4..b5cf2717 100755 --- a/src/api.ts +++ b/src/api.ts @@ -2691,8 +2691,11 @@ export const methods = { .digest('hex') logEventEmitter.emit('fn_start', ticket, api_name, performance.now()) /* prettier-ignore */ if (firstLineLogs) { console.log('Running compileSolidity', args) } - const result = 'test' - callback(null, result) + const error: JSONRPCError = { + code: -32601, + message: 'The method eth_compileSolidity does not exist/is not available', + } + callback(error) countSuccessResponse(api_name, 'success', 'TBD') logEventEmitter.emit('fn_end', ticket, { success: true }, performance.now()) }, @@ -2705,8 +2708,11 @@ export const methods = { .digest('hex') logEventEmitter.emit('fn_start', ticket, api_name, performance.now()) - const result = 'test' - callback(null, result) + const error: JSONRPCError = { + code: -32601, + message: 'The method eth_compileLLL does not exist/is not available', + } + callback(error) countSuccessResponse(api_name, 'success', 'TBD') logEventEmitter.emit('fn_end', ticket, { success: true }, performance.now()) }, @@ -2719,8 +2725,11 @@ export const methods = { .digest('hex') logEventEmitter.emit('fn_start', ticket, api_name, performance.now()) - const result = 'test' - callback(null, result) + const error: JSONRPCError = { + code: -32601, + message: 'The method eth_compileSerpent does not exist/is not available', + } + callback(error) countSuccessResponse(api_name, 'success', 'TBD') logEventEmitter.emit('fn_end', ticket, { success: true }, performance.now()) },