Skip to content

Commit

Permalink
fix: Remove extra from RPC error in response (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu authored Mar 2, 2023
1 parent 527b179 commit 8664cec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web3/packages/api-server/src/methods/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8664cec

Please sign in to comment.