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

chore(build): upgrade ethers to v6 #5314

Draft
wants to merge 49 commits into
base: main
Choose a base branch
from

Conversation

AntonioVentilii
Copy link
Collaborator

@AntonioVentilii AntonioVentilii commented Mar 18, 2025

Motivation

We are starting to include more EVM-based Layer-2 networks (for example Base). But before that we need to stay up-to-date with the latest ethers package (repo: https://github.com/ethers-io/ethers.js).

Thankfully there is an easy guide to migrate from v5 to v6.

Note

Most of the changes are around the deprecation of BigNumber in favour of built-in bigint.

Changes

  • Update imports and functions names according to the guide.
  • Replace all BigNumber instances with bigint.
  • Remove all BigNumber related operations (.add, .gt, etc) in favour of arithmetic ones.

Tests

Current tests are sufficients.

@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 32041e9 to 4c8fd6e Compare March 18, 2025 23:38
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 899a617 to 6bc6b98 Compare March 19, 2025 01:27
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from c1b5bbf to 0be129c Compare March 19, 2025 01:51
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 4faade9 to 188001b Compare March 21, 2025 10:39
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 28e50cc to 91ddce2 Compare March 21, 2025 10:46
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 4d2e828 to 73c798b Compare March 21, 2025 20:32
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from a1bd3c1 to c137e31 Compare March 21, 2025 20:52
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 8d6c3bd to 36647f7 Compare March 21, 2025 21:13
@AntonioVentilii AntonioVentilii force-pushed the chore(build)/upgrade-ethers-to-v6 branch from 3454c38 to 5cfb0be Compare March 24, 2025 10:57
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.

1 participant