mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-05 15:13:10 +00:00
refactor: err to error
This commit is contained in:
parent
5ec16dbf8d
commit
bd66369d12
@ -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