Skip to content

Commit 0506c2a

Browse files
Updated Web3.swift - added Kovan provider
1 parent 262d48b commit 0506c2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/web3swift/Web3/Web3.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,10 @@ public struct Web3 {
7676
return web3(provider: infura)
7777
}
7878

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

0 commit comments

Comments
 (0)