Skip to content

Commit

Permalink
Merge branch 'main' into fix/nft-grid-item-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Prithpal-Sooriya authored Feb 24, 2025
2 parents 52b7075 + a245dc3 commit 6fc8cda
Show file tree
Hide file tree
Showing 47 changed files with 1,159 additions and 502 deletions.
2 changes: 2 additions & 0 deletions app/scripts/constants/sentry-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,10 @@ export const SENTRY_UI_STATE = {
isInitialized: true,
useSafeChainsListValidation: true,
watchEthereumAccountEnabled: false,
///: BEGIN:ONLY_INCLUDE_IF(bitcoin)
bitcoinSupportEnabled: false,
bitcoinTestnetSupportEnabled: false,
///: END:ONLY_INCLUDE_IF
///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
addSnapAccountEnabled: false,
snapsAddSnapAccountModalDismissed: false,
Expand Down
6 changes: 5 additions & 1 deletion app/scripts/controllers/mmi-controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ describe('MMIController', function () {
],
}),
keyringBuilders: [...custodianKeyringBuilders],
state: {},
state: {
keyrings: [],
isUnlocked: true,
keyringsMetadata: [],
},
encryptor: {
encrypt(_, object) {
this.object = object;
Expand Down
30 changes: 30 additions & 0 deletions app/scripts/controllers/preferences-controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ describe('preferences controller', () => {
accounts: [firstAddress, secondAddress],
},
],
keyringsMetadata: [
{
id: '01JKDGGBRE3DGZA7N1PZJSQK4W',
name: '',
},
],
},
[],
);
Expand Down Expand Up @@ -200,6 +206,12 @@ describe('preferences controller', () => {
accounts: [firstAddress, secondAddress],
},
],
keyringsMetadata: [
{
id: '01JKDGGBRE3DGZA7N1PZJSQK4W',
name: '',
},
],
},
[],
);
Expand Down Expand Up @@ -251,6 +263,12 @@ describe('preferences controller', () => {
accounts: [firstAddress, secondAddress],
},
],
keyringsMetadata: [
{
id: '01JKDGGBRE3DGZA7N1PZJSQK4W',
name: '',
},
],
},
[],
);
Expand Down Expand Up @@ -286,6 +304,12 @@ describe('preferences controller', () => {
accounts: [firstAddress, secondAddress],
},
],
keyringsMetadata: [
{
id: '01JKDGGBRE3DGZA7N1PZJSQK4W',
name: '',
},
],
},
[],
);
Expand Down Expand Up @@ -529,6 +553,12 @@ describe('preferences controller', () => {
accounts: [firstAddress, secondAddress],
},
],
keyringsMetadata: [
{
id: '01JKDGGBRE3DGZA7N1PZJSQK4W',
name: '',
},
],
},
[],
);
Expand Down
4 changes: 4 additions & 0 deletions app/scripts/controllers/preferences-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ export type PreferencesControllerState = Omit<
///: BEGIN:ONLY_INCLUDE_IF(solana)
solanaSupportEnabled: boolean;
///: END:ONLY_INCLUDE_IF
///: BEGIN:ONLY_INCLUDE_IF(bitcoin)
bitcoinSupportEnabled: boolean;
bitcoinTestnetSupportEnabled: boolean;
///: END:ONLY_INCLUDE_IF
addSnapAccountEnabled?: boolean;
advancedGasFee: Record<string, Record<string, string>>;
incomingTransactionsPreferences: Record<number, boolean>;
Expand Down Expand Up @@ -677,6 +679,7 @@ export class PreferencesController extends BaseController<
}
///: END:ONLY_INCLUDE_IF

///: BEGIN:ONLY_INCLUDE_IF(bitcoin)
/**
* Setter for the `bitcoinSupportEnabled` property.
*
Expand All @@ -700,6 +703,7 @@ export class PreferencesController extends BaseController<
state.bitcoinTestnetSupportEnabled = bitcoinTestnetSupportEnabled;
});
}
///: END:ONLY_INCLUDE_IF

/**
* Setter for the `useExternalNameSources` property
Expand Down
Loading

0 comments on commit 6fc8cda

Please sign in to comment.