Skip to content

Commit 7d62f8b

Browse files
author
Alex Vlasov
committed
fix log parsing
1 parent 0622f30 commit 7d62f8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web3swift/ABIv2/Classes/ABIv2Decoding.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ extension ABIv2Decoder {
213213
eventContent["name"]=event.name
214214
let logs = eventLog.topics
215215
let dataForProcessing = eventLog.data
216-
if (logs.count == 1 && event.inputs.count > 0) {
217-
return nil
218-
}
219216
let indexedInputs = event.inputs.filter { (inp) -> Bool in
220217
return inp.indexed
221218
}
219+
if (logs.count == 1 && indexedInputs.count > 0) {
220+
return nil
221+
}
222222
let nonIndexedInputs = event.inputs.filter { (inp) -> Bool in
223223
return !inp.indexed
224224
}

0 commit comments

Comments
 (0)