Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: do not panic on invalid units conversion #691

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Dec 14, 2021

Fixes #690

This is done by switching the From implementations to TryFrom and
making the conversion functions return a thiserror Error instead of
the previous Boxed error object
@gakonst gakonst merged commit f037fc0 into master Dec 15, 2021
@gakonst gakonst deleted the fix/panic-units-conversion branch December 15, 2021 02:32
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* fix(config): parse libraries as string

* fix failing test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ethers::utils::parse_units panics on unknown units
1 participant