refactor: err to error

This commit is contained in:
Adam Uhlíř 2024-10-31 13:30:01 +01:00
parent 5ec16dbf8d
commit bd66369d12
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B

View File

@ -293,8 +293,8 @@ proc subscribe*[E: Event](contract: Contract,
let filter = EventFilter(address: contract.address, topics: @[topic])
proc logHandler(logResult: ?!Log) {.raises: [].} =
without log =? logResult, err:
handler(failure(E, err))
without log =? logResult, error:
handler(failure(E, error))
return
if event =? E.decode(log.data, log.topics):