We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2490b commit 6a5ce15Copy full SHA for 6a5ce15
Sources/Core/Web3Error/Web3Error.swift
@@ -54,8 +54,8 @@ public enum Web3Error: LocalizedError {
54
return "Server error: \(code)"
55
case let .clientError(code: code):
56
return "Client error: \(code)"
57
- case .valueError:
58
- return "You're passing value that doesn't supported by this method."
+ case .valueError(let errorDescription):
+ return (errorDescription?.isEmpty ?? true) ? "You're passing value that isn't supported by this method" : errorDescription!
59
}
60
61
0 commit comments