From a8d8ea5ccd19f4218edd2c941c3a59e9188825ea Mon Sep 17 00:00:00 2001 From: Victor Yanev Date: Mon, 24 Jun 2024 13:09:18 +0300 Subject: [PATCH] chore: remove unused constants Signed-off-by: Victor Yanev --- packages/server/src/koaJsonRpc/index.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/server/src/koaJsonRpc/index.ts b/packages/server/src/koaJsonRpc/index.ts index 5206711381..c6eb7c1173 100644 --- a/packages/server/src/koaJsonRpc/index.ts +++ b/packages/server/src/koaJsonRpc/index.ts @@ -48,16 +48,9 @@ import { const hasOwnProperty = (obj: any, prop: PropertyKey) => Object.prototype.hasOwnProperty.call(obj, prop); dotenv.config({ path: path.resolve(__dirname, '../../../../../.env') }); -const INTERNAL_ERROR = 'INTERNAL ERROR'; -const INVALID_PARAMS_ERROR = 'INVALID PARAMS ERROR'; const INVALID_REQUEST = 'INVALID REQUEST'; -const IP_RATE_LIMIT_EXCEEDED = 'IP RATE LIMIT EXCEEDED'; -const JSON_RPC_ERROR = 'JSON RPC ERROR'; -const CONTRACT_REVERT = 'CONTRACT REVERT'; -const METHOD_NOT_FOUND = 'METHOD NOT FOUND'; const REQUEST_ID_HEADER_NAME = 'X-Request-Id'; const responseSuccessStatusCode = '200'; -const BATCH_REQUEST_METHOD_NAME = 'batch_request'; const METRIC_HISTOGRAM_NAME = 'rpc_relay_method_result'; export default class KoaJsonRpc {