fix(deps): unpin [email protected],x [email protected]#11972
fix(deps): unpin [email protected],x [email protected]#11972NicolasMassart merged 22 commits intomainfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
This comment was marked as outdated.
This comment was marked as outdated.
|
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected] |
48fbf0b to
ff87271
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d12a053 to
111a548
Compare
111a548 to
b708bac
Compare
|
6256e6b to
33737d5
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11972 +/- ##
==========================================
+ Coverage 63.42% 63.88% +0.46%
==========================================
Files 2093 2141 +48
Lines 45277 45707 +430
Branches 6234 6320 +86
==========================================
+ Hits 28717 29201 +484
+ Misses 14676 14616 -60
- Partials 1884 1890 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Aside from |
NicolasMassart
left a comment
There was a problem hiding this comment.
this looks good to me but I don't approve it as I spent a lot of time working on it as if I was the author and I want to make sure we have at least another review
There was a problem hiding this comment.
PR Overview
This PR unpins and dedupes the legacy ethereumjs dependencies while switching from re-exported BN types to explicit imports from bn.js libraries. Key changes include:
- Removing BN imports from ethereumjs-util and replacing them with explicit imports from bnjs4 (and bnjs5 for some tests)
- Updating type annotations and instantiation across production and test files
- Adjusting balance calculations to use the new BN implementations
Reviewed Changes
| File | Description |
|---|---|
| app/components/Views/confirmations/SendFlow/Amount/index.js | Removed ethereumjs-util BN import and updated max value calculation |
| app/components/UI/Ramp/hooks/useIntentAmount.ts | Switched to explicit BN4 import |
| app/components/UI/Ramp/Views/BuildQuote/BuildQuote.tsx | Replaced BN with BN4 for amount handling and calculations |
| app/components/UI/Stake/* | Updated BN usage to BN4 in input and gas fee handling logic |
| app/components/UI/ConfirmAddAsset/ConfirmAddAsset.test.tsx | Updated BN usage in tests to BN4 |
| app/components/UI/Tokens/index.test.tsx | Updated BN usage in tests to BN5 |
| app/components/Views/confirmations/SendFlow/Confirm/validation.ts | Updated BN types to BN4 for balance validations |
| other files | Numerous similar updates to enforce explicit BN library usage across production and test code |
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
|
Fix for failing git-safe-dependencies: LavaMoat/LavaMoat#1556 |
|
I copied the lockfile from this PR to our repo as a fixture and Socket shouted at me. There's a bunch of serious stuff ignored in this repo. Are we fine with that? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
|
nickewansmith
left a comment
There was a problem hiding this comment.
Stake changes lgtm
|



Description
Unpin and dedupe
ethereumjs-utilandethereumjs-abiwhile staying on legacy v6Replace
import { BN } from 'ethereumjs-util'with importingBNexplicitly from eitherbn.js@4orbn.js@5toChecksumAddress()[email protected]ethereumjs-utilchangelog[email protected]Related issues
.toString(16)indutny/bn.js#295Blocking
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist