Skip to content

Commit

Permalink
Updated Web3.swift - added Kovan provider
Browse files Browse the repository at this point in the history
  • Loading branch information
BaldyAsh committed Jul 30, 2021
1 parent 262d48b commit 0506c2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/web3swift/Web3/Web3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ public struct Web3 {
return web3(provider: infura)
}

/// Initialized Web3 instance bound to Infura's kovan provider.
public static func InfuraKovanWeb3(accessToken: String? = nil) -> web3 {
let infura = InfuraProvider(Networks.Kovan, accessToken: accessToken)!
return web3(provider: infura)
}

}

0 comments on commit 0506c2a

Please sign in to comment.