mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-04 22:53:08 +00:00
refactor: err to error
This commit is contained in:
parent
5a1bab5a19
commit
badf0dcd3b
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user