Skip to content

Commit 3d7caf7

Browse files
chore: EventFilter initializers combined;
1 parent ce1c62f commit 3d7caf7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/web3swift/Contract/ContractProtocol.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ public struct EventFilter {
5858
}
5959
}
6060

61-
public init() { }
62-
63-
public init(fromBlock: Block?, toBlock: Block?,
61+
public init(fromBlock: Block? = nil,
62+
toBlock: Block? = nil,
6463
addresses: [EthereumAddress]? = nil,
6564
parameterFilters: [[EventFilterable]?]? = nil) {
6665
self.fromBlock = fromBlock

0 commit comments

Comments
 (0)