Skip to content

Commit 2adc2e8

Browse files
authored
Merge branch 'main' into refactor/ramp-use-metamask-env
2 parents 9191af6 + 16c35f9 commit 2adc2e8

File tree

67 files changed

+1810
-348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1810
-348
lines changed

.github/actionlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ self-hosted-runner:
22
# Labels of self-hosted runner in array of strings.
33
labels:
44
- "gha-mmsdk-scale-set-ubuntu-22.04-amd64-xl"
5+
- "gha-mmsdk-scale-set-ubuntu-22.04-amd64-xxl"
6+
- "gha-mmsdk-scale-set-ubuntu-22.04-amd64-l-kvm"
57
- "gha-mmsdk-scale-set-ubuntu-22.04-amd64-large"
68
- "gha-mm-scale-set-ubuntu-22.04-amd64-large"
79
- "gha-mm-scale-set-ubuntu-22.04-amd64-small"

.github/workflows/build-android-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
jobs:
2020
build-android-apks:
2121
name: Build Android E2E APKs
22-
runs-on: gha-mmsdk-scale-set-ubuntu-22.04-amd64-xl
22+
runs-on: gha-mmsdk-scale-set-ubuntu-22.04-amd64-xxl
2323
env:
2424
GRADLE_USER_HOME: /home/runner/_work/.gradle
2525
outputs:

.github/workflows/build-android-upload-to-browserstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
build-android-dual:
7373
name: Build Android Dual Versions
74-
runs-on: gha-mmsdk-scale-set-ubuntu-22.04-amd64-xl
74+
runs-on: gha-mmsdk-scale-set-ubuntu-22.04-amd64-xxl
7575
needs: [check-builds-needed]
7676
env:
7777
GRADLE_USER_HOME: /home/runner/_work/.gradle

.github/workflows/needs-e2e-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- 'wdio/**' # WebDriver test files
9090
- 'wdio.conf.js' # WebDriver config
9191
- 'appwright/**' # Appwright test files
92-
92+
- 'scripts/build.sh' # Build.sh
9393
9494
ignore:
9595
- '**/*.md' # Documentation files
@@ -107,7 +107,9 @@ jobs:
107107
- 'crowdin.yml' # Translation config
108108
- 'bitrise.yml' # CI config (non-GitHub)
109109
- 'sonar-project.properties' # SonarQube config
110-
- 'scripts/**' # Build/utility scripts
110+
- 'scripts/*' # Build/utility scripts
111+
- 'scripts/*/**' # Subdirectories in scripts/
112+
- '!scripts/build.sh' # But NOT build.sh
111113
- 'patches/**' # Dependency patches
112114
- 'ppom/**' # PPOM sub-project
113115

.github/workflows/run-e2e-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on:
4242
jobs:
4343
test-e2e-mobile:
4444
name: ${{ inputs.test-suite-name }}
45-
runs-on: ${{ inputs.platform == 'ios' && 'ghcr.io/cirruslabs/macos-runner:sequoia' || 'gha-mmsdk-scale-set-ubuntu-22.04-amd64-large' }}
45+
runs-on: ${{ inputs.platform == 'ios' && 'ghcr.io/cirruslabs/macos-runner:sequoia' || 'gha-mmsdk-scale-set-ubuntu-22.04-amd64-l-kvm' }}
4646
concurrency:
4747
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.platform }}-${{ inputs.test-suite-name }}-${{ inputs.split_number }}
4848
cancel-in-progress: ${{ !(contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/stable')) }}

.github/workflows/test-android-build-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
android-build:
1818
name: Test Android Build QA App
1919
#runs-on: gha-mm-scale-set-ubuntu-22.04-amd64-large
20-
runs-on: gha-mmsdk-scale-set-ubuntu-22.04-amd64-xl
20+
runs-on: gha-mmsdk-scale-set-ubuntu-22.04-amd64-xxl
2121
outputs:
2222
artifacts-url: ${{ steps.set-artifacts-url.outputs.artifacts-url }}
2323
apk-uploaded: ${{ steps.upload-apk.outcome == 'success' }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/utils/swap-received-amount.cjs b/dist/utils/swap-received-amount.cjs
2+
index 4c01024e3ebba952b0bbded0aa7bb7e2690629f1..4809ec09ab2b94fc0dbb5160d464da4dab61c57e 100644
3+
--- a/dist/utils/swap-received-amount.cjs
4+
+++ b/dist/utils/swap-received-amount.cjs
5+
@@ -28,7 +28,7 @@ const getReceivedERC20Amount = (historyItem, txMeta) => {
6+
const TOKEN_TRANSFER_LOG_TOPIC_HASH = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef';
7+
const tokenTransferLog = txReceipt.logs.find((txReceiptLog) => {
8+
const isTokenTransfer = txReceiptLog.topics &&
9+
- txReceiptLog.topics[0].startsWith(TOKEN_TRANSFER_LOG_TOPIC_HASH);
10+
+ txReceiptLog.topics[0]?.startsWith(TOKEN_TRANSFER_LOG_TOPIC_HASH);
11+
const isTransferFromGivenToken = txReceiptLog.address?.toLowerCase() ===
12+
quote.destAsset.address?.toLowerCase();
13+
const isTransferFromGivenAddress = txReceiptLog.topics &&

android/app/src/androidTest/java/com/metamask/DetoxTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import androidx.test.ext.junit.runners.AndroidJUnit4;
1010
import androidx.test.filters.LargeTest;
1111
import androidx.test.rule.ActivityTestRule;
12+
1213
import com.wix.detox.config.DetoxConfig;
1314
@RunWith(AndroidJUnit4.class)
1415
@LargeTest
@@ -17,7 +18,6 @@ public class DetoxTest {
1718
@Rule
1819
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false);
1920

20-
2121
@Test
2222
public void runDetoxTests() {
2323
DetoxConfig detoxConfig = new DetoxConfig();

app/actions/networkConnectionBanner/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('networkConnectionBanner actions', () => {
2121
it.each([
2222
{
2323
chainId: '0x1',
24-
status: 'slow' as const,
24+
status: 'degraded' as const,
2525
networkName: 'Ethereum Mainnet',
2626
rpcUrl: 'https://mainnet.infura.io/v3/123',
2727
},
@@ -53,7 +53,7 @@ describe('networkConnectionBanner actions', () => {
5353

5454
it('should require chainId, status, networkName and rpcUrl parameters', () => {
5555
const chainId = '0x1';
56-
const status: NetworkConnectionBannerStatus = 'slow';
56+
const status: NetworkConnectionBannerStatus = 'degraded';
5757
const networkName = 'Ethereum Mainnet';
5858
const rpcUrl = 'https://mainnet.infura.io/v3/123';
5959

app/component-library/components-temp/CellSelectWithMenu/__snapshots__/CellSelectWithMenu.test.tsx.snap

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,12 @@ exports[`CellSelectWithMenu should render with default settings correctly 1`] =
266266
<View
267267
style={
268268
{
269-
"backgroundColor": "#ffffff",
270-
"borderColor": "#b7bbc8",
271-
"borderRadius": 10,
272-
"borderWidth": 1,
269+
"backgroundColor": "#f3f5f9",
270+
"borderRadius": 4,
273271
"height": 24,
274272
"justifyContent": "center",
275273
"marginTop": 4,
276-
"paddingHorizontal": 4,
274+
"paddingHorizontal": 8,
277275
}
278276
}
279277
testID="celltag-label"
@@ -282,7 +280,7 @@ exports[`CellSelectWithMenu should render with default settings correctly 1`] =
282280
accessibilityRole="text"
283281
style={
284282
{
285-
"color": "#121314",
283+
"color": "#686e7d",
286284
"fontFamily": "Geist Regular",
287285
"fontSize": 16,
288286
"letterSpacing": 0,

0 commit comments

Comments
 (0)