Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hboon committed Jul 29, 2022
1 parent a84b1ca commit 34d1be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web3swift/Promises/Classes/Promise+HttpProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extension Web3HttpProvider {

public func sendAsync(_ request: JSONRPCrequest, queue: DispatchQueue = .main) -> Promise<JSONRPCresponse> {
if request.method == nil {
return Promise(error: Web3Error.nodeError("RPC method is nill"))
return Promise(error: Web3Error.nodeError("RPC method is nil"))
}

return Web3HttpProvider.post(request, providerURL: self.url, headers: headers, queue: queue, session: self.session)
Expand Down

0 comments on commit 34d1be1

Please sign in to comment.