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

feat(frontend): reward canister services will use bigint instead of BigNumber #5387

Conversation

AntonioVentilii
Copy link
Collaborator

Motivation

We need to migrate to ethers v6: one of the biggest change was the deprecation of BigNumber in favour of built-in bigint (see documentation).

To smooth the migration, we replace BigNumber with bigint in the services of the rewards canister.

Changes

  • Make rewards canister services accept amount as bigint instead of BigNumber.
  • Adapt the rest of the usages.

Tests

Existing tests were sufficient.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review March 21, 2025 15:59
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner March 21, 2025 15:59
Copy link
Contributor

@DenysKarmazynDFINITY DenysKarmazynDFINITY left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@AntonioVentilii AntonioVentilii enabled auto-merge (squash) March 24, 2025 08:43
@AntonioVentilii AntonioVentilii merged commit 2d15d2d into main Mar 24, 2025
25 checks passed
@AntonioVentilii AntonioVentilii deleted the feat(frontend)/reward-canister-services-will-use-bigint-instead-of-BigNumber branch March 24, 2025 09:08
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