From bd66369d12631d8840fe0435a1ee6f3c27c1e343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Thu, 31 Oct 2024 13:30:01 +0100 Subject: [PATCH] refactor: err to error --- ethers/contract.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethers/contract.nim b/ethers/contract.nim index a745da0..c47515b 100644 --- a/ethers/contract.nim +++ b/ethers/contract.nim @@ -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):