Skip to content

Commit ec3d2d3

Browse files
committed
bix fug
1 parent 08fe344 commit ec3d2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+HttpProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class Web3HttpProvider: Web3Provider {
6666

6767
let parsedResponse = try JSONDecoder().decode(T.self, from: data)
6868

69-
if let response = parsedResponse as? JSONRPCresponse, response.error == nil {
69+
if let response = parsedResponse as? JSONRPCresponse, response.error != nil {
7070
throw Web3Error.nodeError(desc: "Received an error message from node\n" + String(describing: response.error!))
7171
}
7272
return parsedResponse

0 commit comments

Comments
 (0)