Skip to content

Commit 75b7b91

Browse files
authored
Merge pull request #119 from wingsofovnia/feature/make-remove-flag-optional-in-EventLog
Make 'removed' flag optional in EventLog
2 parents 31c0ed9 + 6671a50 commit 75b7b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web3swift/Web3/Classes/Web3+Structures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public struct EventLog {
130130
guard let ad = json["address"] as? String else {return nil}
131131
guard let d = json["data"] as? String else {return nil}
132132
guard let li = json["logIndex"] as? String else {return nil}
133-
guard let rm = json["removed"] as? Int else {return nil}
133+
let rm = json["removed"] as? Int ?? 0
134134
guard let tpc = json["topics"] as? [String] else {return nil}
135135
guard let addr = EthereumAddress(ad) else {return nil}
136136
address = addr

0 commit comments

Comments
 (0)