Skip to content

Commit 31c0ed9

Browse files
authored
Merge pull request #118 from wingsofovnia/feature/EventFilter-public-init
Add publc initializer to EventFilter
2 parents b290f86 + 6e4f6c6 commit 31c0ed9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web3swift/Contract/Classes/ContractProtocol.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ public struct EventFilter {
6666
}
6767
}
6868
}
69+
70+
public init(fromBlock: Block?, toBlock: Block?,
71+
addresses: [EthereumAddress]? = nil,
72+
parameterFilters: [[EventFilterable]?]? = nil) {
73+
self.fromBlock = fromBlock
74+
self.toBlock = toBlock
75+
self.addresses = addresses
76+
self.parameterFilters = parameterFilters
77+
}
78+
6979
public var fromBlock: Block?
7080
public var toBlock: Block?
7181
public var addresses: [EthereumAddress]?

0 commit comments

Comments
 (0)