wevm / wevm/prool

Unable to handle async exception

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
141
Forks
26
Avg merge
2d 6h
Merged PRs (30d)
6

Description

The timeout wrapped check can cause prool to throw an exception which can't be easily catched in a try-catch when calling start().

https://github.com/wevm/prool/blob/801ede06ded8b2cb2d59c95294aae795e548897c/src/instance.ts#L210

Additionally when using anvil it's not possible to increase the timeout.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/instance.ts around the timeout-wrapped check near line 210 and trace how start() propagates its exception. Reproduce the behavior with anvil, then verify that the exception can be handled by the caller and that the anvil timeout can be increased.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.