mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-02 21:53:08 +00:00
chore: feedback
Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
This commit is contained in:
parent
7a57a45391
commit
e7bcc75d6b
@ -280,9 +280,9 @@ proc confirm*(
|
||||
let error = blockSubscriptionResult.error()
|
||||
|
||||
if error of SubscriptionError:
|
||||
raise cast[ref SubscriptionError](error)
|
||||
raise (ref SubscriptionError)(error)
|
||||
elif error of CancelledError:
|
||||
raise cast[ref CancelledError](error)
|
||||
raise (ref CancelledError)(error)
|
||||
else:
|
||||
raise error.toErr(ProviderError)
|
||||
|
||||
|
||||
@ -244,7 +244,7 @@ method subscribeBlocks(subscriptions: PollingSubscriptions,
|
||||
try:
|
||||
if blck =? (await subscriptions.client.eth_getBlockByHash(hash, false)):
|
||||
onBlock(success(blck))
|
||||
except CancelledError as e:
|
||||
except CancelledError:
|
||||
discard
|
||||
except CatchableError as e:
|
||||
let error = e.toErr(SubscriptionError, "HTTP polling: There was an exception while getting subscription's block: " & e.msg)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user