Skip to content

Commit

Permalink
fix: error-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mosshqq committed Jan 8, 2025
1 parent 38a872f commit 65cbcea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/json-rpc-error/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ export const guessErrorType = err => {
if (err.code === ERROR.INVALID_PARAMS.code) return InvalidParams
if (err.code === ERROR.INTERNAL.code) return Internal
if (err.code === ERROR.SERVER.code) return Server
if (err.code === ERROR.USER_REJECTED) return UserRejected
if (err.code === ERROR.USER_REJECTED.code) return UserRejected
if (err.code === ERROR.UNAUTHORIZED.code) return Unauthorized
if (err.code === ERROR.UNSUPPORTED_METHOD) return UnsupportedMethod
if (err.code === ERROR.DISCONNECTED) return Disconnected
if (err.code === ERROR.CHAIN_DISCON) return ChainDisconnected
if (err.code === ERROR.UNSUPPORTED_METHOD.code) return UnsupportedMethod
if (err.code === ERROR.DISCONNECTED.code) return Disconnected
if (err.code === ERROR.CHAIN_DISCONNECTED.code) return ChainDisconnected
}

return Internal
Expand Down

0 comments on commit 65cbcea

Please sign in to comment.