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

Fixes for amount conversion & BigNumber lib de-duping #2913

Merged
merged 6 commits into from
Nov 16, 2023

Conversation

jmrossy
Copy link
Contributor

@jmrossy jmrossy commented Nov 10, 2023

Description

  • Bring BigNumber de-duping improvements from @ottbunn into v3
  • Fixes for amount conversion
  • Create unit tests for some amount fns
  • Run utils unit tests in CI

Related issues

https://github.com/hyperlane-xyz/issues/issues/690
#2751
#2828

Backward compatibility

No, minor breaking changes to signatures of amount util fns

Testing

Unit tests

ottbunn and others added 2 commits November 10, 2023 14:01
Consistently use BigNumber.js across the Utils package

- Fixes #2751

No, minor adjustments needed where the utils consumers expected Ethers BigNumbers

Created unit tests
Create unit tests for some amount fns
Run utils unit tests in CI
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #2913 (2ffb16a) into v3 (66d064a) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##               v3    #2913   +/-   ##
=======================================
  Coverage   67.94%   67.94%           
=======================================
  Files          99       99           
  Lines        1017     1017           
  Branches      106      106           
=======================================
  Hits          691      691           
  Misses        286      286           
  Partials       40       40           
Components Coverage Δ
core 50.00% <ø> (ø)
hooks 71.42% <ø> (ø)
isms 70.50% <ø> (ø)
token 58.41% <ø> (ø)
middlewares 81.46% <ø> (ø)

@jmrossy jmrossy merged commit bd70a59 into v3 Nov 16, 2023
26 checks passed
@jmrossy jmrossy deleted the rossy/amount-utils-fixes branch November 16, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants