fix: remove the ability to send to btc accounts in send page#26271
fix: remove the ability to send to btc accounts in send page#26271montelaidev merged 22 commits intodevelopfrom
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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26271 +/- ##
===========================================
+ Coverage 70.00% 70.01% +0.01%
===========================================
Files 1410 1410
Lines 49964 49978 +14
Branches 13801 13803 +2
===========================================
+ Hits 34974 34990 +16
+ Misses 14990 14988 -2 ☔ View full report in Codecov by Sentry. |
Builds ready [2e1acac]
Page Load Metrics (154 ± 170 ms)
Bundle size diffs
|
ui/components/multichain/account-list-menu/account-list-menu.test.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/account-list-menu/account-list-menu.test.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/account-list-menu/account-list-menu.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/account-list-menu/account-list-menu.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/account-list-menu/account-list-menu.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/pages/send/components/your-accounts.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/pages/send/components/your-accounts.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/pages/send/components/account-picker.test.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
| // eslint-disable-next-line import/no-duplicates | ||
| import { BtcAccountType, EthAccountType } from '@metamask/keyring-api'; | ||
| ///: BEGIN:ONLY_INCLUDE_IF(build-flask) | ||
| import { KeyringClient } from '@metamask/keyring-api'; | ||
| import { | ||
| InternalAccount, | ||
| KeyringAccountType, | ||
| KeyringClient, | ||
| // eslint-disable-next-line import/no-duplicates | ||
| } from '@metamask/keyring-api'; |
There was a problem hiding this comment.
Re-posting this one, cause he was not appearing (was outdated). Maybe we can do it like this:
import {
EthAccountType
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
InternalAccount,
KeyringAccountType,
KeyringClient,
///: END:ONLY_INCLUDE_IF
} from '@metamask/keyring-api';
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
import { Caip2ChainId } from '@metamask/snaps-utils';
Builds ready [cf67b29]
Page Load Metrics (234 ± 238 ms)
Bundle size diffs
|
|
Builds ready [f494669]
Page Load Metrics (678 ± 453 ms)
Bundle size diffs
|
|
Missing release label release-12.2.0 on PR. Adding release label release-12.2.0 on PR and removing other release labels(release-12.4.0), as PR was cherry-picked in branch 12.2.0. |







Description
This PR removes BTC accounts from the account picker and
Your Accountslist in the send flow.Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/546
Manual testing steps
Your AccountsScreenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist