Skip to content

Commit 15f7770

Browse files
fix: Networks.fromInt must not return optional
1 parent 093218c commit 15f7770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Web3Core/Structure/Event+Protocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public enum Networks {
7777

7878
static let allValues = [Mainnet, Ropsten, Kovan, Rinkeby]
7979

80-
public static func fromInt(_ networkID: UInt) -> Networks? {
80+
public static func fromInt(_ networkID: UInt) -> Networks {
8181
switch networkID {
8282
case 1:
8383
return Networks.Mainnet

0 commit comments

Comments
 (0)