Skip to content

Commit

Permalink
Merge pull request #18 from AlphaWallet/fix-ens-wildcard-resolution
Browse files Browse the repository at this point in the history
Fix ENS wildcard resolution. Error data needs to be available to caller
  • Loading branch information
hboon authored Aug 22, 2022
2 parents 72d6514 + 7a63b00 commit add8d92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web3swift/Web3/Classes/Web3+JSONRPC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public struct JSONRPCresponse: Decodable {
guard let codeString: String = try? container.decode(String.self, forKey: .code), let code = Int(codeString) else { throw DecodeError.typeMismatch }
self.code = code
}
data = try container.decodeIfPresent(String.self, forKey: .data)
message = try container.decode(String.self, forKey: .message)
}
}
Expand Down

0 comments on commit add8d92

Please sign in to comment.