Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ethers no longer leaks AsyncLockError #1146

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

emizzle
Copy link
Contributor

@emizzle emizzle commented Mar 7, 2025

NOTE: Dependent upon codex-storage/nim-ethers#109

@@ -195,7 +194,7 @@ method slotState*(
try:
let overrides = CallOverrides(blockTag: some BlockTag.pending)
return await market.contract.slotState(slotId, overrides)
except AsyncLockError as err:
except EthersError as err:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we remove the except here ?

The EthersError should be caught by convertEthersError.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it there because of the contextual error message. However, I've just pushed a commit that adds contextual error messages to convertEthersError and updated this block of code 👍

- adds a message to convertEthersError allowing contextual error messages
- replaces try/except EthersError with convertEthersError (PR feedback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants