From d9d6272399eb64b49c89623b7d39e1d475f5d5a1 Mon Sep 17 00:00:00 2001 From: classicalliu Date: Fri, 3 Mar 2023 00:22:28 +0800 Subject: [PATCH] fix: Remove `extra` from RPC error in response --- web3/packages/api-server/src/methods/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web3/packages/api-server/src/methods/index.ts b/web3/packages/api-server/src/methods/index.ts index c2be5dd32..d8976c847 100644 --- a/web3/packages/api-server/src/methods/index.ts +++ b/web3/packages/api-server/src/methods/index.ts @@ -57,9 +57,9 @@ function getMethods(argsList: ModConstructorArgs = {}) { error.data = err.data; } - if (err.extra) { - error.extra = err.extra; - } + // if (err.extra) { + // error.extra = err.extra; + // } cb(error); // NOTE: Our error responses are not automatically collected by NewRelic because we use Jayson instead of