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

fix(dev): updates substrate-js-dev, and fixes latest eslint rules #913

Merged
merged 7 commits into from
May 18, 2022

Conversation

TarikGul
Copy link
Member

@TarikGul TarikGul commented May 6, 2022

Updates to substrate-js-dev@0.6.1.

One important change to note:

@typescript-eslint/no-loss-percision: For testing AccountsStakingPayoutsService.spec.ts we were using BigInt to convert large values. This was inaccurate for the mock data as the actual values returned from p-js are BN. But a result of using the BigInt actually caused us to lose precision. I fixed the tests to accurately communicate the values.

  • Easy reproduction: console.log(BigInt(33223051661066606)) -> 33223051661066608n

@TarikGul TarikGul requested a review from a team as a code owner May 6, 2022 17:04
@TarikGul TarikGul merged commit 12c5914 into master May 18, 2022
@TarikGul TarikGul deleted the tarik-update-dev branch May 18, 2022 12:46
This pull request was closed.
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.

4 participants