Skip to content

Commit

Permalink
Merge branch 'develop' into fix/fix-css-remove-halo-from-token-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri authored Jul 23, 2024
2 parents e884ca7 + 5272c59 commit 427efd3
Show file tree
Hide file tree
Showing 79 changed files with 1,633 additions and 332 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ workflows:
- test-e2e-mmi-playwright - OPTIONAL:
requires:
- prep-build-test-mmi-playwright
- test-e2e-swap-playwright - OPTIONAL:
requires:
- prep-build
- test-e2e-chrome-rpc-mmi:
requires:
- prep-build-test-mmi
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/update-attributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
uses: actions/checkout@v4
with:
# Use PAT to ensure that the commit later can trigger status check workflows
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }}
- name: Checkout pull request
run: gh pr checkout "${PR_NUMBER}"
env:
Expand Down Expand Up @@ -146,8 +146,6 @@ jobs:
git config --global user.email 'metamaskbot@users.noreply.github.com'
git commit -am "Update Attributions"
git push
env:
GITHUB_TOKEN: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }}
- name: Post comment
run: |
if [[ $HAS_CHANGES == 'true' ]]
Expand Down
1 change: 1 addition & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"quickstart",
"recompiles",
"shellcheck",
"SIWE",
"sourcemaps",
"sprintf",
"testcase",
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/de/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/el/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/es/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/fr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/hi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/id/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/ja/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/ko/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/pt/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/ru/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/tl/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/tr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/vi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/_locales/zh_CN/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ import {
OffscreenCommunicationTarget,
OffscreenCommunicationEvents,
} from '../../shared/constants/offscreen-communication';
import {
FakeLedgerBridge,
FakeTrezorBridge,
} from '../../test/stub/keyring-bridge';
import migrations from './migrations';
import Migrator from './lib/migrator';
import ExtensionPlatform from './platforms/extension';
Expand Down Expand Up @@ -416,10 +420,19 @@ async function initialize() {
await browser.storage.session.set({ isFirstMetaMaskControllerSetup });
}

const overrides = inTest
? {
keyrings: {
trezorBridge: FakeTrezorBridge,
ledgerBridge: FakeLedgerBridge,
},
}
: {};

setupController(
initState,
initLangCode,
{},
overrides,
isFirstMetaMaskControllerSetup,
initData.meta,
offscreenPromise,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type UserStorageControllerState = {
/**
* Condition used by UI and to determine if we can use some of the User Storage methods.
*/
isProfileSyncingEnabled: boolean;
isProfileSyncingEnabled: boolean | null;
/**
* Loading state for the profile syncing update
*/
Expand Down
4 changes: 3 additions & 1 deletion app/scripts/lib/hardware-keyring-builder-factory.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import type { TrezorBridge } from '@metamask/eth-trezor-keyring';
import type { LedgerBridge } from '@metamask/eth-ledger-bridge-keyring';
import { KeyringClass, Json } from '@metamask/utils';
import { FakeKeyringBridge } from '../../../test/stub/keyring-bridge';

/**
* A transport bridge between the keyring and the hardware device.
*/
export type HardwareTransportBridgeClass =
| (new () => TrezorBridge)
| (new () => LedgerBridge);
| (new () => LedgerBridge)
| (new () => FakeKeyringBridge);

/**
* Get builder function for Hardware keyrings which require an additional `opts`
Expand Down
1 change: 1 addition & 0 deletions app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export const SENTRY_BACKGROUND_STATE = {
preferences: {
autoLockTimeLimit: true,
hideZeroBalanceTokens: true,
redesignedConfirmationsEnabled: true,
isRedesignedConfirmationsDeveloperEnabled: false,
showExtensionInFullSizeView: true,
showFiatInTestnets: true,
Expand Down
Loading

0 comments on commit 427efd3

Please sign in to comment.