Skip to content

Commit d586654

Browse files
PR Fixups
Change `EventFilterParameters` initializer to appropriate one
1 parent a496533 commit d586654

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Core/Transaction/TransactionParameters.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public struct EventFilterParameters: Codable {
5858
public var topics: [[String?]?]?
5959
public var address: [String?]?
6060

61-
public init() {
62-
fromBlock = nil
63-
toBlock = nil
64-
topics = nil
65-
address = nil
61+
public init(fromBlock: String? = nil, toBlock: String? = nil, topics: [[String?]?]? = nil, address: [String?]? = nil) {
62+
self.fromBlock = fromBlock
63+
self.toBlock = toBlock
64+
self.topics = topics
65+
self.address = address
6666
}
6767
}
6868

0 commit comments

Comments
 (0)