diff --git a/Sources/Core/EthereumNetwork/Request/APIRequest+Methods.swift b/Sources/Core/EthereumNetwork/Request/APIRequest+Methods.swift index b01e51f6c..127bd8e6b 100644 --- a/Sources/Core/EthereumNetwork/Request/APIRequest+Methods.swift +++ b/Sources/Core/EthereumNetwork/Request/APIRequest+Methods.swift @@ -127,7 +127,7 @@ fileprivate enum JsonRpcErrorCode { case -32603: return .internalError default: - if (-32000)...(-32099) ~= code { + if (-32099)...(-32000) ~= code { return .serverError(code) } return nil